User:Gryllida/common.js
Appearance
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
//importScriptURI('//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js'
//+ '&action=raw&ctype=text/javascript');
var grysFlowStuff = {
doStuff: function(){
$('.flow-topic-title').css('font-family','serif');
$('.flow-menu-js-drop').css('display','inline');
$(".flow-post-main").each(function( index ) {
// pick up author
$author = $( this ).find('.flow-author');
$author.prepend('--');
$( this ).find('.mw-usertoollinks').remove();
// pick up ts
$ts = $( this ).find('.flow-timestamp');
$ts.find('.flow-timestamp-ago').remove();
$ts.find('.flow-timestamp-now').show();
$ts.find('.flow-timestamp-now').last().css('color','pink');
$ts.find('.flow-timestamp-now').prepend(' ');
$ts.find('.flow-timestamp-now').append(' ');
// pick up reply button, et al
$buttons = $( this ).find('.flow-post-meta-actions');
$buttons.css('float','none');
// pick up ... button
$menu = $( this ).find('.flow-menu');
$menu.css('display','inline');
$menu.css("top","auto");
$menu.css("right","auto");
// find content - so that we can append to it
$content = $( this ).find('.flow-post-content');
$content.find('p').css("display","inline");
// order things up
$author.appendTo($content.last());
$ts.appendTo($content.last());
$buttons.appendTo($content.last());
$menu.appendTo($content.last());
});
}
};