User:Ingoolemo/standard.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)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
//Create 'winc' function:

function winc(s) {
document.write('<script type="text/javascript" src="' 
             + 'http://en.wikipedia.org/w/index.php?title=User:' + s
             + '.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}

winc('Ingoolemo/iconsuppress');

winc('Ingoolemo/ppwc');

winc('Ingoolemo/xeb');

//Interiot's javascript edit counter
if (document.title.indexOf('User:Interiot/Tool2/code.js') != -1) {
  mw.loader.load('https://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js&action=raw&ctype=text/javascript'); }

// [[User:Lupin/popups.js]] - please include this line 

winc('Lupin/popupsdev');
popupDelay=0.2;
popupAdminLinks=true;
popupShortcutKeys=true;
popupDragging=true;
popupFixRedirs=true;
popupFixDabs=true;
popupMaxPreviewSentences=10;
popupMaxPreviewCharacters=1500;

//function to add counter tool link

winc('Userscripts/Editcount link/Classic skin/source');

//function to handle dates:

winc('Ingoolemo/dates');

//function to handle units:

winc('Ingoolemo/units');