User:Keith D/monobook.js

// function tnaddlilink(url, name) { var na = document.createElement('a'); na.setAttribute('href', url);

var txt = document.createTextNode(name); na.appendChild(txt);

var li = document.createElement('li'); li.appendChild(na); return li; }

function testn(number) { var page = prompt("Vandalism to which article?") var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) t.value += '\n'; t.value += "==Your edits to " + page + "==\n" + page + " \n\n~" + "~" + "~" + "~"; f.wpSummary.value = "Edits to " + page + " - warning " + number; }

function YP(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) {      t.value += '\n'; t.value = "" + '\n' + '\n' + t.value; f.wpSummary.value = "Add ''"; }  else {      f.wpSummary.value = "Created page with ''"; t.value += ""; } }

function YPR(number) { var f = document.editform, t = f.wpTextbox1; if (t.value.length > 0) {      //t.value += '\n'; // t.value = "" + '\n' + '\n' + t.value; f.wpSummary.value = "Rate for ''"; }  else {      f.wpSummary.value = "Rate for ''"; // t.value += ""; } }

function add_testn_tabs { var c1 = document.getElementById('column-one'); var tabs = c1.getElementsByTagName('div')[0].getElementsByTagName('ul')[0];

// Only add for pages with "Editing User talk:" somewhere in the title if (document.title.indexOf("Editing User talk:") != -1) {     tabs.appendChild(tnaddlilink('javascript:testn(1)',"t1")); tabs.appendChild(tnaddlilink('javascript:testn(2)',"t2")); tabs.appendChild(tnaddlilink('javascript:testn(3)',"t3")); tabs.appendChild(tnaddlilink('javascript:testn(4)',"t4"));

}  if (document.title.indexOf("Creating User talk:") != -1) {     tabs.appendChild(tnaddlilink('javascript:testn(1)',"t1")); tabs.appendChild(tnaddlilink('javascript:testn(2)',"t2")); tabs.appendChild(tnaddlilink('javascript:testn(3)',"t3")); tabs.appendChild(tnaddlilink('javascript:testn(4)',"t4"));

}   if (document.title.indexOf("Editing Talk:") != -1) {     tabs.appendChild(tnaddlilink('javascript:YP(1)',"YP")); tabs.appendChild(tnaddlilink('javascript:YPR(1)',"YPR")); } }

addOnloadHook(add_testn_tabs);

// Use of WP assessment tagging script // User:Outriggr/metadatatest.js Copy to own user space as removed from original space by user // importScript('User:Outriggr/metadatatest.js'); //importScript('User:Pyrospirit/metadata.js'); importScript('User:Keith D/tagging.js');

assessmentMyTemplateCode = ["","","","","","","","","","","",""];

assessmentDefaultProject = "WikiProject Yorkshire";

//

// Pop-up fix // importScript('User:Lupin/popups.js');

//importScript('User:Keith D/sandbox7'); //User:AndyZ/peerreviewer.js toolbarLink_PR=true;

// Status script // importScript('User:TheDJ/qui.js');

//Citeation BOT script //importScript('User:Smith609/toolbox.js');

//Dashes script importScript('User:Ohconfucius/dashes.js');

importScript('User:Ucucha/HarvErrors.js'); // importScript('User:Svick/HarvErrors.js');

//Dates script - copy of User:Ohconfucius/MOSNUM dates.js without the non-breaking spaces //importScript('User:Keith D/Dates.js'); importScript('User:Ohconfucius/script/MOSNUM dates.js'); //User:Ohconfucius/script/MOSNUM dates.js //importScript('User:Keith D/MOSNUM dates.js');

//English variant spelling script importScript('User:Ohconfucius/script/EngvarB.js'); //User:Ohconfucius/script/EngvarB.js

//Duplicate links script //importScript('User:Ucucha/duplinks.js'); // User:Ucucha/duplinks importScript('User:Evad37/duplinks-alt.js'); // User:Evad37/duplinks-alt

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

//Bracket match script //importScript ('User:Ais523/bracketmatch.js');

mw.loader.load( "https://meta.wikimedia.org/w/index.php?title=User:Zhaofeng_Li/Reflinks.js&action=raw&ctype=text/javascript" );

// Navigation links

// User:Jsimlo/shortcuts.js restored older version at User:PrimeHunter/shortcuts.js importScript( 'User:PrimeHunter/shortcuts.js' ); function shortcutsInit { //Navigation shortcuts', 'Wikipedia:Tools/Navigation shortcuts');  shortcutsAddLink ('Coventry project', 'WP:COV');   shortcutsAddLink ('Coventry Watchlist', 'Special:RecentChangesLinked/Wikipedia:WikiProject_Coventry/WatchAll');  shortcutsAddLink ('Worcestershire Watchlist', 'Special:RecentChangesLinked/Wikipedia:WikiProject_Worcestershire/WatchAll');

shortcutsStartSection ('Yorkshire'); shortcutsAddLink ('Yorkshire project', 'WP:YORKS'); shortcutsAddLink ('Yorkshire project talk', 'WT:YORKS'); shortcutsAddLink ('No priority articles', ':Category:Unknown-importance Yorkshire articles'); shortcutsAddLink ('Unassessed articles', ':Category:Unassessed Yorkshire articles'); shortcutsAddLink ('Yorkshire Watchlist', 'Special:RecentChangesLinked/Wikipedia:WikiProject_Yorkshire/Watch All'); shortcutsAddLink ('Yorkshire alerts', 'Wikipedia:WikiProject_Yorkshire/Article alerts'); shortcutsAddLink ('Yorkshire popular pages', 'Wikipedia:WikiProject_Yorkshire/Popular pages'); shortcutsAddLink ('To-do list', 'Wikipedia:WikiProject_Yorkshire/to_do'); shortcutsAddLink ('Yorkshire newsletter', 'Wikipedia:WikiProject Yorkshire/Newsletter/July 2024'); shortcutsAddLink ('East co-ords to do', ':Category:East Riding of Yorkshire articles missing geocoordinate data'); shortcutsAddLink ('North co-ords to do', ':Category:North Yorkshire articles missing geocoordinate data'); shortcutsAddLink ('South co-ords to do', ':Category:South Yorkshire articles missing geocoordinate data'); shortcutsAddLink ('West co-ords to do', ':Category:West Yorkshire articles missing geocoordinate data');

shortcutsStartSection ('Lincolnshire'); shortcutsAddLink ('Lincolnshire project', 'WP:LINCS'); shortcutsAddLink ('Lincolnshire Watchlist', 'Special:RecentChangesLinked/Wikipedia:WikiProject_Lincolnshire/WatchAll'); shortcutsAddLink ('Lincolnshire alerts', 'Wikipedia:WikiProject_Lincolnshire/Article alerts'); shortcutsAddLink ('Lincolnshire popular pages', 'Wikipedia:WikiProject_Lincolnshire/Popular pages'); shortcutsAddLink ('Lincolnshite co-ords to do', ':Category:Lincolnshire articles missing geocoordinate data');

shortcutsStartSection ('Warwickshire'); shortcutsAddLink ('Warwickshire project', 'WP:Warwickshire'); shortcutsAddLink ('Warwickshire Watchlist', 'Special:RecentChangesLinked/Wikipedia:WikiProject_Warwickshire/WatchAll');

shortcutsStartSection ('Moves');

shortcutsAddLink ( 'Moves',         'WP:RM' ); shortcutsAddLink ( 'Hist merge',    ':Category:Candidates for history merging' ); shortcutsAddLink ( 'Prefix list',   'Special:PrefixIndex' ); shortcutsStartSection ('Links');

shortcutsAddLink ( 'Hull links', 'Special:WhatLinksHere/Hull?namespace=0'); shortcutsAddLink ( 'Scarborough links', 'Special:WhatLinksHere/Scarborough?namespace=0'); shortcutsAddLink ( 'Pickering links', 'Special:WhatLinksHere/Pickering?namespace=0'); shortcutsAddLink ( 'Malton links', 'Special:WhatLinksHere/Malton?namespace=0');

shortcutsStartSection ('Tools');

shortcutsAddLink ( 'DAB links', 'tools:~dispenser/cgi-bin/dablinks.py');

} mw.config.set('wgPostEditConfirmationDisabled', true); //