User:Seav/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>

//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":500,"maxSimultaneousReq":5,"summaryChacheLen":5,"loadThumbs":false,"loadWikitext":true};
//////////////////////////////////vFCvFCCfgEnd//
//</nowiki>

// "Improve license tagging" code to be used as a bookmarklet:
// new mw.Api().edit(decodeURIComponent(location.pathname.split('/').reverse()[0]),rev=>{let text=rev.content;text=text.replace(/(source\s*=\s*)\{\{own\}\}/,'$1{{sf}}');text=text.replace(/(==\s*\{\{int:license-header\}\}\s*==)[^=]*?(\{\{[^}]+\}\})/s,"$1\n==={{photo}}===\n$2\n==={{plaque}}===\n{{WorkDepicted-PD-PhilippinesGov}}");return{text,summary:'Improve license tagging'}}).then(()=>{location.reload()})