Jump to content

User:Reaper Eternal/vector.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.
// mass rollback
importScript('User:John254/mass_rollback.js'); 
// mark blocked
mw.loader.load('https://ru.wikipedia.org/w/index.php?title=MediaWiki:Gadget-markblocked.js&action=raw&ctype=text/javascript');
// SPI tools
mw.loader.load( '/w/index.php?title=User:GeneralNotability/spihelper.js&action=raw&ctype=text/javascript' ); // Backlink: [[User:GeneralNotability/spihelper.js]]
importScript('User:Amalthea/culoghelper.js');
// personal toplinks
addOnloadHook(function () {
mw.util.addPortletLink( "p-personal", 
 mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Special:Log&user=Reaper+Eternal",
 "Logs", "pt-log", "Link to my logged actions",
 "z", document.getElementById("pt-logout"));
mw.util.addPortletLink( "p-personal", 
 mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=User:Reaper Eternal/Console",
 "Console", "pt-console", "Link to my console",
 "z", document.getElementById("pt-logout"));
mw.util.addPortletLink( "p-personal", 
 mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Special:CheckUser",
 "Checkuser", "pt-checkuser", "Checkuser",
 "z", document.getElementById("pt-logout"));
mw.util.addPortletLink( "p-personal", 
 mw.config.get('wgServer') + mw.config.get('wgScriptPath') + "/index.php?title=Special:CheckUserLog",
 "(log)", "pt-culog", "Checkuser log",
 "z", document.getElementById("pt-logout"));
});
// Compact Vector tabs
$( document ).ready( function() {
  $( 'a', '#ca-history' ).text( 'History' );
  $( 'a', '#ca-viewsource' ).text( 'Source' );
  $( 'a', '#ca-talk' ).text( 'Talk' );
  $( 'a', '#ca-edit' ).text( 'Edit' );
  $( 'a', '#ca-view' ).text( 'Read' );
  $( 'a', '#ca-nstab-user' ).text( 'User' );
  $( 'a', '#ca-nstab-project' ).text( 'Project' );
  $( 'a', '#ca-nstab-mediawiki' ).text( 'Interface' );
  $( 'a', '#ca-nstab-help' ).text( 'Help' );
});