User:CJLL Wright/monobook.js

Source: Wikipedia, the free encyclopedia.
Note: After saving, you have to bypass your browser's cache to see the changes. Google Chrome, Firefox, Microsoft Edge and Safari: Hold down the ⇧ Shift key and click the Reload toolbar button. For details and instructions about other browsers, see Wikipedia:Bypass your cache.
// [[User:Lupin/popups.js]] - please include this line 
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
popupFixRedirs=true;
popupRedirAutoClick='wpPreview';
popupFixDabs=true;
popupAdminLinks=true;

//  Add a "Kate" link to your monobook "personal menu" list at the very
//  top of the page.
//
//  Indicate where you would like "Kate" to appear:
//    pt-userpage, pt-mytalk, pt-preferences,
//    pt-watchlist, pt-mycontris, pt-logout
//
gsKateInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
function KateLink()
{
var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-kate';

var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'ctr-KAT' ) ); // eh, the css makes the text lowercase
a.href = 'http://tools.wikimedia.de/~kate/cgi-bin/count_edits?dbname=enwiki&user=' + user;

li.appendChild( a );
 
if ( ! gsKateInsertBefore ) // append to end (right) of list
{
document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{
var before = document.getElementById( gsKateInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', KateLink, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', KateLink );

//  Add a "WannabeKate" link to your monobook "personal menu" list at the very
//  top of the page.
//
//  Indicate where you would like "wannabeKate" to appear:
//    pt-userpage, pt-mytalk, pt-preferences,
//    pt-watchlist, pt-mycontris, pt-logout
//
gsWBKateInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
function WBKateLink()
{
var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-wbkate';

var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'ctr-WBK' ) ); // eh, the css makes the text lowercase
a.href = 'http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=CJLL+Wright&site=en.wikipedia.org';

li.appendChild( a );
 
if ( ! gsWBKateInsertBefore ) // append to end (right) of list
{
document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{
var before = document.getElementById( gsWBKateInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', WBKateLink, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', WBKateLink );

//  Add Interiot's  "Contributions-tree" link to your monobook "personal menu" list at the very
//  top of the page.
//
//  Indicate where you would like "cTree" to appear:
//    pt-userpage, pt-mytalk, pt-preferences,
//    pt-watchlist, pt-mycontris, pt-logout
//
gsCTreeInsertBefore = 'pt-mycontris'; // leave blank to append after "logout"
function CTreeLink()
{
var user = document.getElementById( 'pt-userpage').firstChild.firstChild.data;
var li = document.createElement( 'li' );
li.id = 'pt-ctree';

var a = document.createElement( 'a' );
a.appendChild( document.createTextNode( 'c-tree' ) ); // eh, the css makes the text lowercase
a.href = 'http://tools.wikimedia.de/~interiot/cgi-bin/contribution_tree?user=CJLL+Wright&dbname=enwiki_p';

li.appendChild( a );
 
if ( ! gsCTreeInsertBefore ) // append to end (right) of list
{
document.getElementById( 'pt-logout' ).parentNode.appendChild( li );
}
else
{
var before = document.getElementById( gsCTreeInsertBefore );
before.appendChild( li, before );
}
}
if ( window.addEventListener ) window.addEventListener( 'load', CTreeLink, false );
else if ( window.attachEvent ) window.attachEvent( 'onload', CTreeLink );

//Back-up edit counter
//Visit [[User:Interiot/Tool2/code.js]] in emergencies!
document.write('<script type="text/javascript" src="' 
    + 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' 
    + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// Script from [[User:Lupin/editcount.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:Lupin/editcount.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
popupEditCounterTool='custom';
popupEditCounterUrl='http://en.wikipedia.org/wiki/User:$1?ectarget=$1';

// Script from [[User:ais523/editcount.js]]
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:ais523/editcount.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');

// Script from [[User:MarkS/extraeditbuttons.js]]
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]]

// Script for [[User:DOI Bot]]
importScript("User:Smith609/toolbox.js");