Jump to content

User:संजीव कुमार/global.js

From Meta, a Wikimedia project coordination wiki

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');

//commons hotcat
mw.loader.load('//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript');

// Own script directly from github
// first check your commit on github raw
mw.loader.load('//raw.githubusercontent.com/sanjeevphys/mathHindi/master/mathscript.js');
// Own script from web space
mw.loader.load('//sakumar.web.cern.ch/sakumar/js/test_wiki.js');
// Testing mathscript by Cornell University
mw.loader.load('//latex.codecogs.com/latexit.js');
mw.loader.load('//cdn.rawgit.com/mathjax/MathJax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML');
//Twinkle for hiwiki by User:Siddharth_Ghai
//mw.loader.load('//hi.wikipedia.org/w/index.php?title=user:Siddhartha_Ghai/twinkle.js&action=raw&ctype=text/javascript');
//mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:ProveIt_GT/ProveIt.js&action=raw&ctype=text/javascript' );
// [[:en:User:ProveIt GT]]
//importScript('सदस्य:Shubhamkanodia/closeAFD.js'); // changed by user SM7
//mw.loader.load( '//hi.wikipedia.org/w/index.php?title=user:SM7/closeAFD.js&action=raw&ctype=text/javascript' );

// new script from SM7
mw.loader.load( '//hi.wikipedia.org/w/index.php?title=user:SM7/moveR.js&action=raw&ctype=text/javascript');

// installation from enwiki
//mw.loader.load('//en.wikipedia.org/w/index.php?title=User%3ADr+pda%2Fpersondata.js&action=raw&ctype=text/javascript'); // [[User:Dr pda/persondata.js]]

//mw.loader.load('//en.wikipedia.org/w/index.php?title=&action=raw&ctype=text/javascript');
//mw.loader.load('//en.wikipedia.org/w/index.php?title=&action=raw&ctype=text/javascript');
//mw.loader.load('//en.wikipedia.org/w/index.php?title=&action=raw&ctype=text/javascript');

//////////testeing above

//global js, loaded on every wiki
/**
 * Forces left-to-right layout and editing on RTL wikis.
 * @see https://meta.wikimedia.org/wiki/Force_ltr
 * @update-token [[File:pathoschild/forceltr.js]]
 */
mw.loader.load('//tools-static.wmflabs.org/meta/scripts/pathoschild.forceltr.js');

// from [[:en:User:Zhaofeng_Li/reFill]]
mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );
//Preloads common deletion reasons for crosswiki use
// [[File:Snowolf_GS_delete.js]] // commented on 19 October 2018
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Snowolf/GS_delete.js&action=raw&ctype=text/javascript');

// Range contribs
// by [[m:user:Mike.lifeguard]] <http://meta.wikimedia.org/wiki/User:Mike.lifeguard/rangeContribs.js> // not using now, commented 19 October 2018
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Mike.lifeguard/rangeContribs.js&action=raw&ctype=text/javascript');

// Provides several usefull functions for rollback (custom edit summary, mark as bot edits and mass revert)
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/smart_rollback.js> // Not useful because there are many similar tools are there.
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/smart_rollback.js&action=raw&ctype=text/javascript');

// Gives some usefull links on user, user talk and user contribution pages
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/useful_links.js>
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/useful_links.js&action=raw&ctype=text/javascript');

// Tagger for eg. Speedy deletions
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/tagger.js> //commented on 19 October 2018
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/tagger.js&action=raw&ctype=text/javascript');

// Shows the number of active sysops
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/active_sysops.js>
if(typeof(activeSysopsConfig) === 'undefined') activeSysopsConfig = {};
activeSysopsConfig.markWikisActiveSysops = true;
activeSysopsConfig.markWikisGS = true;

mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/active_sysops.js&action=raw&ctype=text/javascript');

// This tool shows a link to the "Wikipedia article traffic statistics" (stats.grok.se) on every article, by [[m:user:Hoo man]]
/*hitCountConfig = {'toolLinkMethod' : 'p-tb'};
mw.loader.load('//de.wikipedia.org/w/index.php?title=Benutzer:Hoo_man/hit_count.js&action=raw&ctype=text/javascript');
Not using above script; commented on 19 October 2018 */

// A tool very similar to the Nuke Extension, but with more features
// by [[m:user:Hoo man]] <http://meta.wikimedia.org/wiki/User:Hoo_man/Scripts/Sledge_Hammer> // commented on 19 October 2018
//mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Hoo_man/sledgeHammer.js&action=raw&ctype=text/javascript');


/*
* Don't copy the following!! (debug code)
*/

//this makes the background of the wiki logo red if jQuery (document.$) has been overwritten
//I need that to (on the run) see on which wikis jQuery still is broken //commented on 19 October 2018
/*if(typeof($) === 'undefined' || $(document) === null || typeof($(document).ready) !== 'function') {
	if(document.getElementById('p-logo')) {
		document.getElementById('p-logo').style.backgroundColor = 'red';
	}
}*/

// [[File:Krinkle_Global_SUL.js]] // Now it is as a gadget on hiwiki. Not needed here.
// mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Tools/Global_SUL.js&action=raw&ctype=text/javascript');

// self testing // not needed, because it can be directly tested from github
//mw.loader.load('//en.wikimedia.org/w/index.php?title=User:संजीव_कुमार/hit_count.js&action=raw&ctype=text/javascript');

// RedWarn
//mw.loader.load( '//en.wikipedia.org/w/index.php?title=User:RedWarn/.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:RedWarn/.js]]