Jump to content

User:Anna Frodesiak/common.js

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 04:21, 28 June 2015 (whoops, fix premature substing by using nowiki tags). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
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.
//Makes identifying blocked editors instantaneous.
importScript('User:NuclearWarfare/Mark-blocked script.js');
//MastCells
importScript('User:MastCell/user-rights.js');
//for RFPP (confusing but handy, read the manual)
importScript('User:Rami_R/rfppClerk.js');
//always open diffs from history in a new window
$(function() { $("#mw-history-compare").attr("target", "_blank"); });
//something to do with saying a protection has been done
importScript('User:Steel359/protection.js');
//turn off Visual Editor
importScript('User:Matma_Rex/VE_killer.js');
$( document ).ready( function() {
  var rights_isAdmin = (wgUserGroups.toString().indexOf('sysop') != -1);
  if (!rights_isAdmin) return; //Restrict to admins.
  if (wgNamespaceNumber != "2" && wgNamespaceNumber != "3") return;
  var username = mw.config.get('wgTitle').split( '/' )[0].replace( /\"/, "\\\"");
    
    addPortletLink('p-tb', mw.util.wikiGetlink('Special:DeletedContributions/')+username,
    'Deleted contributions', 't-deleted', 'Deleted contributions of this user', null, '#t-whatlinkshere');
 
    addPortletLink('p-tb', mw.util.wikiGetlink('Special:Contributions/')+username,
    'User contributions', 't-live', 'Deleted contributions of this user', null, '#t-deleted');
    
	addPortletLink('p-tb', mw.util.wikiGetlink('Special:Block/')+username, 'Block user', 't-block', 'Block this user', null, '#t-whatlinkshere');
    
});
importScript('User:Anomie/unwatch.js');
/* User:MusikAnimal/spamublock.js */
importScript( 'User:MusikAnimal/spamublock-toolbox.js' );// Backlink: [[User:MusikAnimal/spamublock.js]]

// SpamUserPage - see [[User:Mr. Stradivarius/gadgets/SpamUserPage]] for documentation.
SpamUserPage = {}; // Don't remove this line! It is necessary for SpamUserPage settings.
SpamUserPage.menulocation = "p-tb";
// <nowiki>
SpamUserPage.presets = [
	{
		id: "spamublock",
		template: "{{subst:User:Anna Frodesiak/Cuw-soa-block}} ~~~~"
	},
	{
		id: "soablock",
		template: "{{subst:User:Anna Frodesiak/Cuw-soa-block}} ~~~~"
	}
];
// </nowiki>
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]