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:19, 28 June 2015 (configure SpamUserPage to appear in the Tools menu, and use Anna's custom template for spamublock and soablock). 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";
SpamUserPage.presets = [
	{
		id: "spamublock",
		template: "<div class="user-block" style="min-height: 40px"> [[Image:Stop x nuvola.svg|40px|left|alt=|link=]] You have been '''[[Wikipedia:Blocking policy|blocked]]''' from editing because [[Special:MyContributions|your account's edits]] and/or [[Special:MyPage|username]] indicate that it is being used on behalf of a company, group, website or organization for purposes of promotion and/or publicity. If you think there are good reasons why you should be unblocked, you may [[Wikipedia:Appealing a block|appeal this block]] by copying the text <!-- Copy the text as it appears on your page, not as it appears in this edit area. Do not include the "tlx" argument. -->{{tlx|unblock|2=reason=''Your reason here &#126;&#126;&#126;&#126;''}} and posting it below this notice (replacing ''"Your reason here &#126;&#126;&#126;&#126;"'' with the reason), but you should read the [[Wikipedia:Guide to appealing blocks|guide to appealing blocks]] first.</div> — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 04:19, 28 June 2015 (UTC)"
	},
	{
		id: "soablock",
		template: "<div class="user-block" style="min-height: 40px"> [[Image:Stop x nuvola.svg|40px|left|alt=|link=]] You have been '''[[Wikipedia:Blocking policy|blocked]]''' from editing because [[Special:MyContributions|your account's edits]] and/or [[Special:MyPage|username]] indicate that it is being used on behalf of a company, group, website or organization for purposes of promotion and/or publicity. If you think there are good reasons why you should be unblocked, you may [[Wikipedia:Appealing a block|appeal this block]] by copying the text <!-- Copy the text as it appears on your page, not as it appears in this edit area. Do not include the "tlx" argument. -->{{tlx|unblock|2=reason=''Your reason here &#126;&#126;&#126;&#126;''}} and posting it below this notice (replacing ''"Your reason here &#126;&#126;&#126;&#126;"'' with the reason), but you should read the [[Wikipedia:Guide to appealing blocks|guide to appealing blocks]] first.</div> — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 04:19, 28 June 2015 (UTC)"
	}
];
importScript('User:Mr. Stradivarius/gadgets/SpamUserPage.js'); // Linkback: [[User:Mr. Stradivarius/gadgets/SpamUserPage.js]]