User:Kudpung2/vector.js

From wikishia

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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
importScript('User:Dr_pda/prosesize.js'); //[[User:Dr_pda/prosesize.js]]
importScript('User:AWeenieMan/furme.js');
importScript('User:TheJosh/Scripts/NewPagePatrol.js');
 
<!-- Igloo: I  never figured out how to use it -->
importScript('User:Ale_jrb/Scripts/igloo.js'); // [[User:Ale_jrb/Scripts/igloo]]
<!-- delsort  scripts optional-->
importScript('User:Quarl/util.js');
importScript('User:Quarl/wikipage.js');
<!-- delsort  scripts mandatory-->
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:AzaToth/twinkle.js');
 
<!-- 'Watchlist since' should load only new changes to  your watchlist  since the last  time you  reloaded it-->
importScript('Wikipedia:WikiProject User scripts/Scripts/Watchlist since');
 
 
importScript('User:VoA/monobook.js');
 
//[[Category:Wikipedians who use RC script]]
 
<!-- Important tool for Good Article and Featured article reviewers and writers. Provides a complete analysis of the status of all external links -->
/** Checklinks toolbox item ***************************************************
* 
*  Description: Adds an item in toolbox portlet that runs the checklinks tool 
*               on the viewed page.
*  Maintainers: [[User:Dispenser]]
*  Installation: Copy and paste following code into you /monobook.js
*  <nowiki>         {{subst:js|User:Dispenser/Link checker/toolbox.js}}
*  </nowiki>
*/
function checklinks(){
addPortletLink('p-tb', 'http://toolserver.org/~dispenser/cgi-bin/webchecklinks.py?page=' + wgContentLanguage + ':' + wgPageName, 'Check external links', 't-checklinks');
}
if(wgIsArticle){
addOnloadHook(checklinks);
}
 
importScript('User:Lupin/recent2.js');
 
 
importScript('User:Quarl/wikipage.js');function addToToolbox() {
  if (wgCanonicalNamespace != "Special") {
 
   var pTb = document.getElementById("p-tb");
   var pRef = pTb.cloneNode(true);
   var pStats = pTb.cloneNode(true);
 
   pRef.id="p-refs";
   pRef.innerHTML = "<h5>Reference formatting</h5><div class=pBody><ul></ul></div>";
   pStats.id="p-stats";
   pStats.innerHTML = "<h5>Statistics</h5><div class=pBody><ul></ul></div>";
   pTb.parentNode.insertBefore(pRef, pTb.nextSibling);
   pTb.parentNode.insertBefore(pStats, pRef);
 
   var escPageName = escape(wgPageName).replace(/\+/g, '%2B').replace(/&/g, '%26').replace(/%u2013/g, '%96');
 
   addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Bot/DOI_bot/doibot.php?edit=toolbar&turbo=1&user="+wgUserName+"&page="+escPageName, 'Automatic (fast)', '', "Add DOIs to citations and fix common formatting errors. Turbo mode!");
   addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Bot/DOI_bot/doibot.php?edit=toolbar&slow=1&user="+wgUserName+"&page="+escPageName, 'Automatic (thorough)', '', "Add DOIs to citations and fix common formatting errors");
   //addPortletLink("p-refs", "http://tools.wikimedia.de/~verisimilus/Scholar/RefTool.php?user="+wgUserName+"&wgPageName="+escPageName, 'Semi-automatic (experimental)', '', "Improve formatting of references – manually approve automatic improvements");
 
   now = new Date();
   var month = now.getMonth();
   var thisMonth = (now.getDay() > 6);
   if (thisMonth) month++;
   if (month == 0) var month=12;
   else var month =  ((month <10)?'0':'') + month;
   addPortletLink("p-stats", "http://stats.grok.se/en/" + now.getFullYear() + month + "/"+wgPageName, 'Traffic stats', '', "Traffic to this page " + (thisMonth?'this':'last') + " month");
   addPortletLink("p-stats", "http://wikidashboard.parc.com/wiki/"+wgPageName, 'Edit history stats', '', "Statistics about the edit history of this page");
 
    }
}
addOnloadHook(addToToolbox);
 
 
<!-- Status changer puts a coloured blob in  the top  bar  of your user page and talk  pag to  notify  users of your online status -->
//////////STATUS CHANGER
// Creator: Misza13
// Credits: Voyagerfan5761 for some minor improvements
// Modified by Xenocidic to simply use /Status as a one word indicator,
// Modified by Kraftlos to include Sleep status
// compatible with {{Statustop}} for display
 
addOnloadHook(function (){
  //Check if the config is defined
  if (typeof(statusChangerConfig) == 'undefined') {
    statusChangerConfig = {}
  }
 
  if (typeof(statusChangerConfig.statusList) == 'undefined') {
      statusChangerConfig.statusList = [ 'online', 'busy', 'around', 'offline', 'sleep' ];
  }
 
  if (typeof(statusChangerConfig.statusPage) == 'undefined') {
      statusChangerConfig.statusPage = 'User:' + wgUserName + '/Status';
  }
 
  //Add the links
  for (var i=0; i<statusChangerConfig.statusList.length; i++) {
    var stat = statusChangerConfig.statusList[i];
    var message = (stat === "sleep") ?  link = "asleep" : link = stat;
    addPortletLink(
      "p-personal", //target tab - personal links
      wgServer + wgScript + "?title=" + statusChangerConfig.statusPage + "&action=edit&newstatus=" + stat, //link URL
      stat, //link text
      "pt-status-" + stat, //id of new button
      "I'm " + message + "!", //hover text
      "", //???
      document.getElementById("pt-logout")); //add before logout button
  }
 
  if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?
  //Get new status
  statusRegExp = /&action=edit&newstatus=(.*)/;
  var status = statusRegExp.exec(location.href)[1];
  //Modify the form
  document.getElementById('wpTextbox1').value = status;
  if (status == "sleep")
  { status = "sleeping"; }
  document.getElementById('wpSummary').value = wgUserName + " is now " + status +".";
  document.getElementById('wpMinoredit').checked = true;
  //Submit it!
  document.getElementById('editform').submit();
});
 
//[[Category:Wikipedia scripts|statusChanger]]
 
<!-- Wiki bookmarks, stored in special user page, adds tabs -->
importScript('User:Twinzor/wikimark.js');
 
 
<!-- cribbed from  Boing said Zeb. Apparently  useful  for admins. -->
importScript('User:AzaToth/twinkle.js');
if( typeof( TwinkleConfig ) == 'undefined' ) TwinkleConfig = {}; // DO NOT REMOVE THIS LINE - ALL TWINKLE SETTINGS AFTER THIS
TwinkleConfig.watchRevertedPages = [];
TwinkleConfig.showSharedIPNotice = false;
TwinkleConfig.showRollbackLinks = [ 'diff' ];
TwinkleConfig.watchSpeedyPages = [];
TwinkleConfig.watchWarnings = false;
 
 
<!-- Cribbed from  Wifione. Apparently  useful  for admins. -->
// EasyBlock - Allows to block users quickly using a drop-down menu with frequent lengths and reasons
importScript('User:Animum/easyblock.js');
//[[User:Animum/easyblock.js]]
 
// EasyUnBlock - Allows to unblock users quickly using a drop-down menu with frequent lengths and reasons
importScript('User:Ale_jrb/Scripts/unblock.js'); 
//[[User:Ale_jrb/Scripts]]
 
//Mark blocked users
importScriptURI('http://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
 
//List usergroups on User:USERNAME or User talk:USERNAME
importScript('User:Splarka/sysopdectector.js');
 
// User Identifier - Adds a little button to the username when viewing the userpage, showing edit count, groups, registering date
importScript('User:Anomie/useridentifier.js');
 
// UserRights Link - Adds a "User rights" links to user pages
//importScript('User:X!/userrights.js');
 
<!-- Automates the addition  of the delsort notes to  AfD but doesn't always show in  Twinkle menu; doesn't  always do  a complete job -->
importScript('User:AzaToth/morebits.js');
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu');
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css');
importScript('User:AzaToth/twinkle.js');
importScript('Wikipedia:WikiProject Deletion sorting/delsort.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:Mr.Z-man/closeAFD.js');