User:Elvey/common.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
// <nowiki>
importScript('User:Juliancolton/sysopdectector.js');

userHideAllSubsequent=true;

importScript('User:Elvey/hidetopcontrib.js');


window.AjaxDeleteWatchFile = true;

 /*  //Somehow, typos got introduced into this.  Line 17 ("'talk_tag...") has an unclosed string.  Perhaps an extra carriage return?  Ditto line 29, 36....  Looks like a subst got expanded that shouldn't have.
window.AjaxDeleteExtraButtons = [
  {
    'label': 'dw-nsd',
    'tag': '{{dw no source since|month=April|day=2|year=2014}}',
    'img_summary': 'This is a [[COM:DW|derivative work]] and no source is provided.',
    'talk_tag': '== {{Autotranslate|1=%FILE%|base=Dw image source/heading}} ==
{{Autotranslate|1=%FILE%|base=Dw image source}}',
    'talk_summary': 'Original source is missing for %FILE%',
  }, {
    'label': 'Duplicate',
    'tag': '{{duplicate|1=%PARAMETER%|user=%USER%}}',
    'img_summary': 'Tagging as duplicate of  [[%PARAMETER%]]',
    'prompt_text': 'Which is file is this a duplicate of?'
  }, {
    'label': 'Wrong license',
    'tag': '{{wrong license}}',
    'img_summary': 'This file has a wrong licence specified.',
    'talk_tag': '== [[:%FILE%]] ==
{{Autotranslate|1=%FILE%|2=|base=Wrong license note}}',
    'talk_summary': 'Licence for %FILE% is wrong',
  }, {
    'label': 'bsr',
    'tag': '{{bsr}}',
    'img_summary': 'This file needs a better source.',
    'talk_tag': '
=={{autotranslate|base=Bsr-user/heading|%FILE%}}==
{{autotranslate|base=Bsr-user|%FILE%}} [[User:Elvey|Elvey]] ([[User talk:Elvey|<span class="signature-talk">talk</span>]]) 06:43, 2 April 2014 (UTC)',
    'talk_summary': '%FILE% needs a better source.',
  }
];
*/

window.AjaxDeleteExtraButtons = [
                {
                    'label': 'DW No Source',
                    'tag': '{'+'{subst:dw-nsd}}',
                    'img_summary': 'This is a [[COM:DW|derivative work]] and no source is provided.',
                    'talk_tag': '{'+'{subst:dw image source|1=%FILE%}}',
                    'talk_summary': 'Original source is missing for %FILE%',
                }, {
                    'label': 'Tag as dupe',
                    'tag': '{'+'{duplicate|1=%PARAMETER%|user=%USER%}}',
                    'img_summary': 'Tagging as duplicate of  [[%PARAMETER%]]',
                    'prompt_text': 'Which is file is this a duplicate of?'
 
                }
];

 
importScript('User:Magog the Ogre/cleanup.js');
 
//I want the following but the editor is giving me a warning, plus I'm troubleshooting hidetopcontribs.js....
mw.util.addPortletLink('p-tb', 'javascript:importScript("MediaWiki:VisualFileChange.js");', 'Perform batch task', 't-AjaxQuickDeleteOnDemand');
 
importScript('User:Rillke/LicenseReview.js');
 
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Writ_Keeper/Scripts/orangeBar.js&action=raw&ctype=text/javascript');
 
// </nowiki>
//<nowiki>
 

//vFCvFCCfg/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFCSettings = {"userNote":"Yours sincerely,","firstTest":0,"testEdits":0,"defaultAction":"c_replace","watchlistUserTalk":"preferences","watchlistFiles":"preferences","watchlistReplace":"nochange","watchlistOTRS":"nochange","loadBatchSize":100,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":true,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>
//<nowiki>

//vFCProfil/////////////////////////////////////
/////// VISUAL FILE CHANGE CONFIGURATION ///////
///// DO NOT MODIFY BY HAND - FINGERS AWAY! ////
////////////////////////////////////////////////
window.vFC_Profiles = {"Souza3":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Pilot run 3 - fix bogus boilerplate - different from Cirt example","mdReplacePermission":false,"mdDeleteHeading":"Files in [[:Category:Photographs by Pete Souza]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/way and may not be used in commercial or political materials, advertisements, emails, products, promotions that in/","mdReplaceText1":"way that, and may not be used in commercial or political materials, advertisements, emails, products, promotions that, in","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"none","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Photographs by Pete Souza","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|4a4f4520424944454e204f4646494349414c20504f52545241495420534d414c4c2e4a5047|7283990"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Photographs by Pete Souza","loadThumbs":true,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|46454d41202d203433313536202d20505245534944454e54204f42414d41205448414e4b532052455343554520414e442041494420574f524b455253204241434b2046524f4d20484149544920494e204449535452494354204f4620434f4c554d4249412e4a5047|10334756","file|4a4f4520424944454e204f4646494349414c20504f52545241495420534d414c4c2e4a5047|7283990"],"setVals":["cmcontinue"]},"time":"2015-07-10T23:39:53.257Z"},"Souza4-Replace iffy copyfraud fix with all-new boilerplate, per discussion":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"tamp out copyfraud","mdReplacePermission":false,"mdDeleteHeading":"Files on [[Commons:Sandbox]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/This official White House photograph is being made available only for publication by news organizations and/or for personal use printing by the subject(s) of the photograph. The photograph may not be manipulated in any way and may not be used in commercial or political materials, advertisements, emails, products, promotions that in any way suggests approval or endorsement of the President, the First Family, or the White House./g","mdReplaceText1":"This official White House photograph is in the public domain from a copyright perspective, so while restrictions such as personality or privacy rights may apply, in general, manipulations are allowed.","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"none","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"Category:Photographs by Pete Souza","cmdir":"asc","cmsort":"sortkey","cmstartsortkey":"","cmcontinue":"file|32303039303532310a4f42414d4120414e4420534f544f4d41594f522e4a5047|6872483"},"startInput":{"mode":"Category","modeCat":true,"modeUser":false,"modePage":false,"target":"Category:Photographs by Pete Souza","loadThumbs":false,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":["file|32303039303530360a42415241434b204f42414d412c2048414d4944204b41525a41492026204153494620414c49205a41524441524920494e205452494c41544552414c204d454554494e4720352d362d303920332e4a5047|6720535","file|32303039303532310a4f42414d4120414e4420534f544f4d41594f522e4a5047|6872483"],"setVals":["cmcontinue"]},"time":"2015-07-17T18:28:11.961Z"},"Copyfraud-Set6":{"editInputs":{"mdDeleteReason":"","mdEditSummary":"Replace text with copyfraud issue with all-new boilerplate, per discussion - Older White House variant","mdReplacePermission":false,"mdDeleteHeading":"Files on [[Commons:Sandbox]] ","mdTalkNote":"Yours sincerely,","mdRRegEx1":true,"mdRVar1":true,"mdMatchText1":"/This official White House photograph is being made available for publication by news organizations and/or for personal use printing by the subject\\(s\\) of the photograph. The photograph may not be manipulated in any way or used in materials, advertisements, products, or promotions that in any way suggest approval or endorsement of the President, the First Family, or the White House./g","mdReplaceText1":"This official White House photograph is in the public domain from a copyright perspective, so while restrictions such as [[w:personality rights|personality or privacy rights]] may apply, in general, manipulations are allowed.","mdRRegEx2":false,"mdRVar2":true,"mdMatchText2":"","mdReplaceText2":"","selPreserve":"none","alsoPreserve":""},"action":"c_replace","objectMembers":{"queryParams":{"target":"User:Elvey/sandbox","imdir":"ascending"},"startInput":{"mode":"Page","modeCat":false,"modeUser":false,"modePage":true,"target":"Page:User:Elvey/sandbox","loadThumbs":false,"loadWikitext":true,"startDate":"","startFile":""}},"proceedAt":{"vals":[],"setVals":["imcontinue"]},"time":"2015-07-17T20:23:03.414Z"}};
//////////////////////////////////vFCProfilEnd//
//</nowiki>