Jump to content

User:Sole Soul2/monobook.js

From 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.
var book_source_URL = "http://books.google.com/books?as_isbn=MAGICNUMBER";
importScript('User:Lunchboxhero/externISBN.js');

importScript('User:Tra/sidebartranslate.js'); //[[User:Tra/sidebartranslate.js]]

importScript('User:Sole Soul/recent2.js');

importScript('User:Js/ajaxPreview.js');
ajaxPreviewPos = 'left' //buttons on the left
ajaxPreviewPos = 'bottom' //buttons on the bottom, replacing standard


mw.loader.load('https://de.wikipedia.org/w/index.php?title=Benutzer:ASM/quickedit.js&action=raw&ctype=text/javascript');

importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:AzaToth/twinklewarn.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinkleprod.js');
importScript('User:AzaToth/twinklexfd.js');
importScript('User:Ioeth/friendlywelcome.js');
importScript('User:Ioeth/friendlytag.js');
importScript('User:Ioeth/friendlytalkback.js');


if( typeof( FriendlyConfig ) == 'undefined' ) FriendlyConfig = {};
FriendlyConfig.insertUsername			=	false;
FriendlyConfig.watchTaggedPages		=	false;
FriendlyConfig.watchWelcomes			=	false;

//stolen from Ukexpat
FriendlyConfig = {
customWelcomeList:      [
{
label: '{{User:Ukexpat/welcome2|Sole Soul}}: ukexpat welcome template 2',
value: 'User:Ukexpat/welcome2|Sole Soul'}
]
};




importScript('User:TachyonJack/gTranslate.js');
importScript('User:NuclearWarfare/Mark-blocked script.js');
importScript('User:Smith609/toolbox.js');

// [[User:Lupin/popups.js]] - please include this line 
importScript('User:Lupin/popups.js');
 
popupStructure='nostalgia';
popupPreviewFirstParOnly=false;
popupFixDabs=true;
popupFixRedirs=true;

importScript('User:SQL/refcheck.js');
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
toolbarLink_PR = true;

importScript('User:Splarka/dabfinder.js');

// Helper tools
mw.loader.load(
             'https://wiki.riteme.site/w/index.php?title=User:Voice_of_All/Addtabs/monobook.js'
             + '&action=raw&ctype=text/javascript&dontcountme=s');
//

// Google tools && Spelling
document.write('<script type="text/javascript" src="' 
             + 'http://wiki.riteme.site/w/index.php?title=User:Voice_of_All/Google/monobook.js' 
             + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
//

importScript('User:Alex_Smotrov/histcomb.js');
histCombNoCollapse = true

importScript('User:Dr pda/editrefs.js'); //[[User:Dr pda/editrefs.js]]

importScript('User:Paranomia/simplevote.js');
importScript('User:Ais523/adminrights.js');

// [[User:Superm401/Compare link.js]]
importScript("User:Superm401/Compare link.js");


// from Mr.Z-man
 addOnloadHook( function () {
  mw.util.addPortletLink("p-tb",
    mw.config.get('wgServer') + mw.config.get('wgArticlePath').replace("$1", "Special:PrefixIndex/" + wgPageName + "/"),
    "Subpages", "t-subpages", "See all subpages of this page");
  });

// this adds a 'Page logs' link to the toolbox bar
$(function () {
    if ( wgCanonicalNamespace == "Special" )
        return;  // don't display link for special pages
 
    url = wgServer + "/w/index.php?title=Special:Log&page=" + encodeURIComponent(mw.config.get('wgPageName'));
 
    mw.util.addPortletLink("p-tb", url, "Page logs", "pt-logs");
});
 
Mvaluejs_class = 'zxcvb';
Rvaluejs_class = 'zxcvb';
Uvaluejs_class = 'zxcvb';

// [[user:Where/usertabs]]
 
$(function() {
  if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1)  //no subpages or history
     return;
  if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
     var username = encodeURIComponent( wgTitle );
     mw.util.addPortletLink("p-tb", wgServer + "/w/index.php?title=Special:Log&type=block&page=User:" + username, "Blocks received", "ca-blog", "Blocks received by this user");
     mw.util.addPortletLink("p-tb","http://toolserver.org/~eagle/archivesearch.php?search=(\{\{[^[]*\||[^|%3A%2FA-Za-z0-9]|^)"+ username +"[^A-Za-z0-9]&useregex=1&where[]=enpedia_3rr&where[]=enpedia_an&where[]=enpedia_ani&where[]=enpedia_cn" , "Noticeboards", "ca-Notice", "Noticeboards search tool from Eagle");
     mw.util.addPortletLink("p-tb","http://toolserver.org/~luxo/contributions/contributions.php?user="+ username +"&lang=" , "Global", "ca-Global", "Global contribiutons from Luxo");
     mw.util.addPortletLink("p-tb", wgServer + "/w/index.php?title=Special:Log&type=block&user=" + username, "Blocks given", "", "Blocks by this user");
  }
});

importScript('user:js/watchlist.js');

// This script adds toolbox links to search Google web, news archive, books, scholar, and images for the title of the page.
 
$(function () {
    if (wgCanonicalNamespace == "Special")
        return;  // no links for special pages
    if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk")
        return;

    var title = wgTitle;
    if (wgCanonicalNamespace != "")
        title = title.replace(/^.*\//, "");  // subpage name only
 
    var query = encodeURIComponent('"'+title+'" -Wikipedia' ); 
    mw.util.addPortletLink('p-tb', 'http://www.google.com/search?&q='+query,
                   'Web search', 't-googlesearch', 'Search Google for "'+title+'"', 'W');
    mw.util.addPortletLink('p-tb', 'http://news.google.com/archivesearch?&as_price=p1&as_src=-newswire+-wire+-presswire+-PR+-press+-release&q='+query,
                   'News search', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');
    mw.util.addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=3&as_pub=-icon&q='+query,
                   'Books search', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');
    mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query,
                   'Scholar search', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');
    mw.util.addPortletLink('p-tb', 'http://images.google.com/images?q='+query,
                   'Images search', 't-googleimagesearch', 'Search Google Images for "'+title+'"', 'I');
});

$(function () {
    if (wgCanonicalNamespace == "Special")
        return;  // no links for special pages
    if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk")
        return;
 
    var title = wgTitle;
    if (wgCanonicalNamespace != "")
        title = title.replace(/^.*\//, "");  // subpage name only
 
    var query = encodeURIComponent(''+title+'' );  
    mw.util.addPortletLink('p-tb', 'http://toolserver.org/~betacommand/cgi-bin/fix_refs?ip='+query,
                   'List-defined refs', 't-listdefinedrefs', 'List defined refs "'+title+'"', 'I');
});


 // Adds a drop-down menu to the search box to choose the namespace to search in.
 
 addOnloadHook(function () {
     var searchGoButton = document.getElementById('searchGoButton');
     if (!searchGoButton) return;
 
     var searchNsHidden = document.createElement('input');
     searchNsHidden.id = 'searchNsHidden';
     searchNsHidden.type = 'hidden';
     searchNsHidden.name = 'ns0';
     searchNsHidden.value = '1';
 
     var searchNsMenu = document.createElement('select');
     searchNsMenu.id = 'searchNsMenu';
     searchNsMenu.name = 'ns';
     searchNsMenu.options[searchNsMenu.options.length] = new Option('(Main)', 0);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Talk', 1);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('User', 2);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('User talk', 3);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Wikipedia', 4);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Wikipedia talk', 5);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Image', 6);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Image talk', 7);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('MediaWiki', 8);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('MediaWiki talk', 9);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Template', 10);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Template talk', 11);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Help', 12);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Help talk', 13);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Category', 14);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Category talk', 15);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Portal', 100);
     searchNsMenu.options[searchNsMenu.options.length] = new Option('Portal talk', 101);
     searchNsMenu.onchange = function () {
         searchNsHidden.name = 'ns' + (this.selectedIndex < 0 ? '0' : 
 this.options[this.selectedIndex].value);
     };
     // From /skins-1.5/monobook/main.css?5:
     searchNsMenu.style.width = '10.9em';
     searchNsMenu.style.margin = '0';
     searchNsMenu.style.fontSize = '95%';
     searchGoButton.parentNode.insertBefore(searchNsHidden, searchGoButton);
     searchGoButton.parentNode.insertBefore(searchNsMenu, searchGoButton);
 });

importScript('User:Mr.Z-man/closeAFD.js');
importScript('User:Fran Rogers/dimorphism.js');
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript('User:TheDJ/Gadget-HotCat.js');
importScript("User:PleaseStand/subsearch.js");
importScript("User:Gary King/automatic article lead image.js");
importScript("User:Svick/SectionInput.js");
importScript('User:7/hidepatrolled.js');