User:LeaW/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]]

document.write('<script src="'
+ 'http://de.wikipedia.org/w/index.php?title=Benutzer:ASM/quickedit.js'
+ '&action=raw&ctype=text/javascript"></script>');

// WP:FRIENDLY
FriendlyConfig = {
        watchTaggedPages                :       false,
        markTaggedPagesAsMinor          :       false
};

function talkpageplus()
{
    var talkpagelink = document.getElementById('ca-talk');
    if(!talkpagelink) return;
    if (talkpagelink.className == 'new')
    {
        talkpagelink.firstChild.href += '&section=new';
    }
}
$(talkpageplus);


// HistoryCount
$(function (){
    var N = 20;      // <<== CHANGE TO YOUR LIKING
    var x = document.getElementById('ca-history');
    if(!x) return;
    x.getElementsByTagName('a')[0].href += "&limit=" + N;
});


//importScript('de:Benutzer:ASM/quickedit.js'); //[[User:Supadawg/secedit.js]]

//   document.write('<script src="'
//   + 'http://de.wikipedia.org/w/index.php?title=Benutzer:ASM/quickedit.js'
//   + '&action=raw&ctype=text/javascript"></script>');
 
// importScript('');
importScript('Wikipedia:WikiProject User scripts/Scripts/Replace');
// Doesn't work: importScript('User:Ais523/topcontrib.js');
importScript('User:Alex Smotrov/wlunwatch.js');
importScript('User:Ais523/watchlistnotifier.js');
// Doesn't work for me (incomp.)? importScript('Wikipedia:WikiProject_User_scripts/Scripts/All_diffs_above_here');
// Broken: importScript('Wikipedia:WikiProject_User_scripts/Scripts/Single_column_diffs');
importScript('User:Alex_Smotrov/histcomb.js');
 
 
// addPurge
$(function () {
    var hist; var url;
    if (!(hist = document.getElementById('ca-history') )) return;
    if (!(url = hist.getElementsByTagName('a')[0] )) return;
    if (!(url = url.href )) return;
    mw.util.addPortletLink('p-cactions', url.replace(/([?&]action=)history([&#]|$)/, '$1purge$2'),
                   'purge', 'ca-purge', 'Purge server cache for this page', '0');
});

importScript('Wikipedia:WikiProject User scripts/Scripts/Unreferenced tool');

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