Jump to content

User:Trevj/common.js: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
Line 1: Line 1:
// <nowiki>

//RefToolbar 2.0 script
//RefToolbar 2.0 script
importScript('User:Mr.Z-man/refToolbar 2.0.js');
importScript('User:Mr.Z-man/refToolbar 2.0.js');
Line 70: Line 72:


importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]
importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]

// imported from
// User:Stefan2/common.js
// Googling (based on Commons:MediaWiki:Gadget-GoogleImages.js):
if (wgNamespaceNumber == 6) {
var images = document.getElementById('file').getElementsByTagName('img');
var imageurl = images[0].parentNode.href;
mw.util.addPortletLink('p-cactions', 'https://www.google.com/searchbyimage?image_url=' + encodeURIComponent(imageurl), 'Google Images');
}

// </nowiki>

Revision as of 13:45, 19 March 2013

// <nowiki>

//RefToolbar 2.0 script
importScript('User:Mr.Z-man/refToolbar 2.0.js');

//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  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>'); }

//HotCat
importScript('MediaWiki:Gadget-HotCat.js');

//User:Smith609/RefTool
importScript('User:Smith609/reftool.js');

//User:Odie5533/SnipManager
importScript('User:Odie5533/SnipManager.user.js');

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

importScript('User:Gary King/subjects age from year.js'); //[[User:Gary King/subjects age from year.js]]

importScript('User:Gary King/contribs alt link.js'); //[[User:Gary King/contribs alt link.js]]

importScript('User:Gary King/highlight my username in history.js'); //[[User:Gary King/highlight my username in history.js]]

importScript('User:Gary King/mark edits after my own.js'); //[[User:Gary King/mark edits after my own.js]]

importScript('User:Gary King/default summary.js'); //[[User:Gary King/default summary.js]]

importScript('User:Gary King/show upload deletion logs.js'); //[[User:Gary King/show upload deletion logs.js]]

importScript('User:Gary King/hide and show sidebar portlets.js'); //[[User:Gary King/hide and show sidebar portlets.js]]

importScript('User:Gary King/highlight nearby links.js'); //[[User:Gary King/highlight nearby links.js]]

importScript('User:Gary King/link intermediate revisions.js'); //[[User:Gary King/link intermediate revisions.js]]

importScript('User:Mr.Z-man/closeAFD.js');

importScript("User:Writ Keeper/Scripts/teahouseTalkback.js");
importScript("User:Writ Keeper/Scripts/teahouseTalkbackLink.js");
importScript("User:Writ Keeper/Scripts/teahouseUtility.js");

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

importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool

importScript('User:DavidWS/afdvote.js');

// Module: revisionjumper.js Allows to jump between diffs and permanent links
importScript('MediaWiki:Gadget-revisionjumper.js'); // [[MediaWiki:Gadget-revisionjumper.js]]

// [[User:Fran Rogers/CH2_en.js]]
importScript('User:Fran Rogers/CH2_en.js');

/**** afd helper ****/
importScript('User:Jnothman/afd_helper/script.js');

/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */

importScript('User:Equazcion/ExperiencedEditorPack.js'); //Linkback: [[User:Equazcion/ExperiencedEditorPack]]

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

importScript('User:Smith609/toolbox.js');

importScript('User:Doug/closemfd.js'); // [[User:Doug/closemfd.js]]

importScript('User:AndyZ/peerreviewer.js'); //[[User:AndyZ/peerreviewer.js]]

// imported from
// User:Stefan2/common.js
// Googling (based on Commons:MediaWiki:Gadget-GoogleImages.js):
if (wgNamespaceNumber == 6) {
  var images = document.getElementById('file').getElementsByTagName('img');
  var imageurl = images[0].parentNode.href;
  mw.util.addPortletLink('p-cactions', 'https://www.google.com/searchbyimage?image_url=' + encodeURIComponent(imageurl), 'Google Images');
}

// </nowiki>