User:Gryllida/common.js

//importScriptURI('//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js' //+ '&action=raw&ctype=text/javascript');

$(document).ready( function { 	mw.loader.using( [ 'mediawiki.feedback', 'mediawiki.api', 'jquery.chosen', 'jquery.spinner'], grysFlowStuff.doStuff ); } );

var grysFlowStuff = {

doStuff: function{ $('.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); });

} };