User:Dycedarg/monobook.js

//Detect IE5.5+ if (navigator.appVersion.indexOf("MSIE")==-1) { //

// User:Lupin/popups.js importScript('User:Lupin/popups.js'); popupFixDabs=true; popupRevertSummaryPrompt=true;

importScript('User:AzaToth/twinkle.js');

TwinkleConfig = { userTalkPageMode               :       'tab', showSharedIPNotice             :       true, openTalkPage                   :       [ 'agf', 'norm', 'vand' ], watchRevertedPages             :       [ 'agf' ], markRevertedPagesAsMinor       :       [ 'agf', 'norm', 'vand', 'torev' ], };

importScript('User:Cacycle/wikEd.js');

importScript('User:ais523/editcount.js');

/* Category watch (User:ais523/catwatch.js); adds entries on the watchlist if a page is added to a category(and is still in the category when the watchlist is checked). The entry will only appear if there is another page on the watchlist edited that day (if the addition was the only change on that day, it's neglected). The recategorisation of a page in a watched category will also trigger the watching, even if it's a different category that's added or removed (unless the watched category is removed); removals from the watched category can't be detected. Categories with more than 100 elements won't be watched for server-load reasons. */

//

var cwwpajax; // From WP:US mainpage (wpajax renamed to cwwpajax) cwwpajax={ download:function(bundle) { // mandatory: bundle.url // optional: bundle.onSuccess (xmlhttprequest, bundle) // optional: bundle.onFailure (xmlhttprequest, bundle) // optional: bundle.otherStuff OK too, passed to onSuccess and onFailure var x = window.XMLHttpRequest ? new XMLHttpRequest : window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : false; if (x) { x.onreadystatechange=function { x.readyState==4 && cwwpajax.downloadComplete(x,bundle); };                       x.open("GET",bundle.url,true); x.send(null); }               return x;        },

downloadComplete:function(x,bundle) { x.status==200 && ( bundle.onSuccess && bundle.onSuccess(x,bundle) || true ) || ( bundle.onFailure && bundle.onFailure(x,bundle) || alert(x.statusText)); } };

// Example: // function dlComplete(xmlreq, data) { //     alert(data.message + xmlreq.responseText); // } // cwwpajax.download({url:'http://en.wikipedia.org/w/index.php?title=Thresher&action=raw', //                   onSuccess: dlComplete, message: "Here's what we got:\n\n" });

// End of WP:US quote

function addSubpagesLink { if ((wgCanonicalNamespace == "Special") || (wgCanonicalNamespace == "")) return; var na = document.createElement('a'); url='http://en.wikipedia.org/wiki/Special:Prefixindex/'+wgPageName; na.setAttribute('href', url); na.appendChild(document.createTextNode('Subpages'));

var li = document.createElement('li'); li.appendChild(na);

var tabs = document.getElementById('p-tb').getElementsByTagName('ul')[0]; tabs.appendChild(li); } addOnloadHook(addSubpagesLink); } importScript('User:MZMcBride/hideentries.js');