User:Reaper Eternal/vector.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Reaper Eternal/vector.css. |
// 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' );
});