User:MarkS/monobook.js: Difference between revisions
Appearance
Content deleted Content added
Copy of monobook from WikiDudeMan |
rv to my monobook |
||
Line 1: | Line 1: | ||
//<pre> |
|||
importScript('User:AzaToth/morebits.js'); |
|||
// Script from [[User:Lupin/recent2.js]] |
|||
importScript('User:AzaToth/twinklefluff.js'); |
|||
document.write('<script type="text/javascript" src="' |
|||
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js' |
|||
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
importScript('User:AzaToth/twinklewarn.js'); |
|||
importScript('User:AzaToth/twinklearv.js'); |
|||
importScript('User:AzaToth/twinklespeedy.js'); |
|||
importScript('User:AzaToth/twinklediff.js'); |
|||
TwinkleConfig = { |
|||
revertMaxRevisions : 50, |
|||
userTalkPageMode : 'window', |
|||
showSharedIPNotice : true, |
|||
openTalkPage : [ 'agf', 'norm', 'vand' ], |
|||
openTalkPageOnAutoRevert : false, |
|||
openAOLAnonTalkPage : false, |
|||
summaryAd : " ", |
|||
deletionSummaryAd : " ", |
|||
watchSpeedyPages : [ 'g3', 'g5', 'g10', 'g11', 'g12' ], |
|||
openUserTalkPageOnSpeedyDelete : [ 'g1', 'g2', 'g10', 'g11', 'g12', 'a1', 'a7', 'i3', 'i4', 'i5', 'i6', 'i7', 'u3', 't1' ], |
|||
watchRevertedPages : [ 'agf', 'norm', 'vand', 'torev' ], |
|||
markRevertedPagesAsMinor : [ 'agf', 'norm', 'vand', 'torev' ], |
|||
deleteTalkPageOnDelete : false, |
|||
markWarningsAsMinor : true, |
|||
markAIVReportAsMinor : true, |
|||
markSpeedyPagesAsMinor : true, |
|||
confirmUsernameToAIV : true |
|||
}; |
|||
// |
|||
// [[User:Lupin/popups.js]] |
|||
// ADD UNWATCH LINKS: |
|||
document.write('<script type="text/javascript" src="' |
|||
addOnloadHook(function () { |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js' |
|||
if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return; |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
if (!document.forms[0] || !document.forms[0].namespace) return; |
|||
// INTERIOT EDIT COUNT |
|||
//var query_prefix = "title="+encodeURIComponent(wgPageName)+"&action=submit&remove=1&id[]="; |
|||
document.write('<script type="text/javascript" src="' |
|||
var query_prefix = "action=unwatch&title="; |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
// [[User:Dschwen/wikiminiatlas2.js]] - please include this line |
|||
// get list of all links in content: |
|||
document.write('<script type="text/javascript" src="' |
|||
var links = document.getElementById('content').getElementsByTagName('a'); |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/wikiminiatlas2.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
function addLink(where, url, name, id, title, key, after){ |
|||
// make a static copy of the nodelist and lose the original for speed |
|||
// |
//* where is the id of the toolbar where the button should be added; |
||
// i.e. one of "p-cactions", "p-personal", "p-navigation", or "p-tb". |
|||
var linksCopy = new Array (); |
|||
// |
|||
for (var i = 0; i < links.length; i++) { |
|||
//* url is the URL which will be called when the button is clicked. |
|||
if (/[?&]action=history([&#]|$)/.test(links[i].href)) linksCopy.push(links[i]); |
|||
// javascript: urls can be used to do more complex things. |
|||
// |
|||
//* name is what will appear as the name of the button. |
|||
// |
|||
//* id is the id of the button; it's best to define one. |
|||
// Use a prefix to make sure its unique. Optional. |
|||
// |
|||
//* title is the tooltip title that gives a longer description |
|||
// of the button; if you define a accesskey, mention it here. Optional. |
|||
// |
|||
//* key is the char you want for the accesskey. Optional. |
|||
// |
|||
//* after is the id of the button you want to follow this one. Optional. |
|||
// |
|||
var na = document.createElement('a'); |
|||
na.href = url; |
|||
na.appendChild(document.createTextNode(name)); |
|||
var li = document.createElement('li'); |
|||
if(id) li.id = id; |
|||
li.appendChild(na); |
|||
var tabs = document.getElementById(where).getElementsByTagName('ul')[0]; |
|||
if(after) { |
|||
tabs.insertBefore(li,document.getElementById(after)); |
|||
} else { |
|||
tabs.appendChild(li); |
|||
} |
} |
||
if(id) { |
|||
if(key && title) { ta[id] = [key, title]; } |
|||
else if(key) { ta[id] = [key, '']; } |
|||
else if(title) { ta[id] = ['', title];} |
|||
// create unwatch link and append it after history link |
|||
var unwatch = document.createElement('a'); |
|||
unwatch.href = wgServer + wgScriptPath + "/index.php?" + query_prefix + encodeURIComponent(links[i].title); |
|||
unwatch.title = "Unwatch "+links[i].title; |
|||
unwatch.appendChild(document.createTextNode("unwatch")); |
|||
links[i].parentNode.insertBefore(unwatch, links[i].nextSibling); |
|||
// insert a delimiter between the two links |
|||
var delim = links[i].previousSibling; |
|||
delimText = (delim.nodeType == 3 ? delim.nodeValue : ""); // kluge to handle case where "diff" is unlinked |
|||
delim = document.createTextNode(delimText.replace(/^.*diff/, "")); |
|||
links[i].parentNode.insertBefore(delim, unwatch); |
|||
} |
} |
||
// re-render the title and accesskeys from existing code in wikibits.js |
|||
}); |
|||
akeytt(); |
|||
return li; |
|||
} |
|||
//addLink("p-tb","http://www.news.bbc.co.uk","Cat search","MS123","Category search","",""); |
|||
// |
|||
//==== XEB Settings ==== |
|||
// [[User:Lupin/popups.js]] |
|||
//Which settings: Live,Dev,Karl,Test,DDev,MacGyverMagic |
|||
importScript('User:Lupin/popups.js'); |
|||
XEBSettings="Dev"; |
|||
//======= Development XEB settings ================== |
|||
// |
|||
if(XEBSettings=="Dev") |
|||
addOnloadHook(function () { |
|||
{ |
|||
//XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk"; |
|||
var x; |
|||
if (!(x = document.getElementById('ca-edit') )) return; |
|||
var url; |
|||
if (!(url = x.getElementsByTagName('a')[0] )) return; |
|||
if (!(url = url.href )) return; |
|||
var y = addPortletLink('p-cactions', url+"§ion=0", '0', 'ca-edit-0', |
|||
'Edit the lead section of this page', '0', x.nextSibling); |
|||
var rmEditButtons = ['all']; |
|||
y.className = x.className; // steal classes from the the edit tab... |
|||
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk"; |
|||
x.className = 'istalk'; // ...and make the edit tab have no right margin |
|||
//myButtons={'_ZZ':['http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_headline2.png','Mark //Test','Before','After','Middle'], |
|||
// exception: don't steal the "selected" class unless actually editing section 0: |
|||
//'_ZA':['http://upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png','Mark2 //Test','111','333','222']}; |
|||
if (/(^| )selected( |$)/.test(y.className)) { |
|||
if (!document.editform || !document.editform.wpSection |
|||
|| document.editform.wpSection.value != "0") { |
|||
y.className = y.className.replace(/(^| )selected( |$)/g, "$1"); |
|||
x.className += ' selected'; |
|||
} |
|||
} |
|||
document.write('<script type="text/javascript" src="' |
|||
}); |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/XEB/dev.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
//======= Test XEB settings ================== |
|||
if(XEBSettings=="Test") |
|||
XEBOrder='A,B,C,D,F,D1,U,S,G,Q,W,K,H,R,FS,P1,R1,R2,R3,R4,Y1,'; |
|||
{ |
|||
rmEditButtons=[1,2,3]; |
|||
var rmEditButtons = ['all']; |
|||
myButtons=[]; |
|||
//DebugXEB=true; |
|||
// Script from [[User:MarkS/extraeditbuttons.js]] |
|||
importScript('User:MarkS/extraeditbuttons.js'); //[[User:MarkS/extraeditbuttons.js]] |
|||
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk"; |
|||
myButtons={'_ZZ':['http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_headline2.png','Mark Test','Before','After','Middle'], |
|||
'_ZA':['http://upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png','Mark2 //Test','111','333','222']}; |
|||
document.write('<script type="text/javascript" src="' |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/XEB/test.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
addOnloadHook(function(){ document.getElementById("ca-edit").firstChild.innerHTML = "Edit";}); |
|||
importScript('User:Dycedarg/easyprod.js'); |
|||
importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); |
|||
importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); |
|||
//==== Live XEB Settings ==================================== |
|||
if(XEBSettings=="Live") |
|||
{ |
|||
var rmEditButtons = ['all']; |
|||
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk"; |
|||
document.write('<script type="text/javascript" src="' |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
//==== Make XEB Settings ==================================== |
|||
/**** welcome new user ****/ |
|||
document.write('<script type="text/javascript"' + |
|||
'src="http://en.wikipedia.org/w/index.php?title=User:Nmajdan/welcome_newuser.js' + |
|||
'&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
if(XEBSettings=="Mark") |
|||
{ |
|||
var rmEditButtons = ['all']; |
|||
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk"; |
|||
document.write('<script type="text/javascript" src="' |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
//==== Default XEB Settings ==================================== |
|||
importScript("User:Lupin/recent2.js"); |
|||
if(XEBSettings=="Default") |
|||
{ |
|||
document.write('<script type="text/javascript" src="' |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
if(XEBSettings=="MacGyverMagic") |
|||
{ |
|||
// Script from [[User:MarkS/extraeditbuttons.js]] |
|||
//rmEditButtons=[3,4,5,6,7,10,A,Q,W,X,L,T]; |
|||
myButtons={ |
|||
'_WEB':['http://upload.wikimedia.org/wikipedia/commons/7/73/External_link_icon.png','cite web','Before1','After1','Text1'],'CODE2':['url2','Tooltip2','{{','}}','cite news | last = | first = | coauthors = | title = | work = | pages = | language = | publisher = | date = | url = | accessdate =']}; |
|||
rmEditButtons=[3,4,5,6,7,10]; |
|||
/**** quick image delete ****/ |
|||
XEBOrder="0,1,2,AI,8,9,B,D,C,D1,F,U,S,I1,I2,J2,E,G,K,M,H,O,R,V,FS,N,R1,R2,R3,TL,Z,_WEB,CODE2"; |
|||
document.write('<script type="text/javascript"' + |
|||
//importScript('MarkS/extraeditbuttons');//[[User:MarkS/extraeditbuttons.js]] |
|||
'src="http://en.wikipedia.org/w/index.php?title=User:Howcheng/quickimgdelete.js' + |
|||
'&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
document.write('<script type="text/javascript" src="' |
|||
/* This is to keep track of who is using this extension: [[User:Howcheng/quickimgdelete.js]] */ |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js' |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
// <pre> |
|||
// [[User:Wikidudeman/monobook.js]] |
|||
// <nowiki> |
|||
//requires: |
|||
//importScript('Wikipedia:WikiProject User scripts/Scripts/Add LI menu'); |
|||
//importStylesheet('Wikipedia:WikiProject User scripts/Scripts/Add LI menu/css'); |
|||
if(typeof(autosubmit) == 'undefined') { var autosubmit = 'false'; } |
|||
if(typeof(minoredit) == 'undefined') { var minoredit = 'true'; } |
|||
if(typeof(show_cwli) == 'undefined') { var showcwli = 'false'; } |
|||
Date.monthNames = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]; |
|||
Date.prototype.getMonthName = function() { return Date.monthNames[ this.getMonth() ]; } |
|||
Date.prototype.getUTCMonthName = function() { return Date.monthNames[ this.getUTCMonth() ]; } |
|||
function doCleanup(n) { |
|||
text = document.editform.wpTextbox1.value; |
|||
date = new Date(); |
|||
switch(n) { |
|||
case 'abbr': |
|||
text = '{' + '{' + 'Abbreviations|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as containing inappropriate abbreviations'; |
|||
break; |
|||
case 'confusing': |
|||
text = '{' + '{' + 'confusing|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as confusing'; |
|||
break; |
|||
case 'copyedit': |
|||
text = '{' + '{' + 'copyedit|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as requiring some copyediting'; |
|||
break; |
|||
case 'context': |
|||
text = '{' + '{' + 'context|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as providing insufficient context'; |
|||
break; |
|||
case 'cleanup': |
|||
text = '{' + '{' + 'Cleanup|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as requiring cleanup'; |
|||
break; |
|||
case 'globalize': |
|||
text = '{' + '{' + 'Globalize|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as being in need of globalization'; |
|||
break; |
|||
case 'resume': |
|||
text = '{' + '{' + 'Like-resume|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as possibly being in violation of [[WP:COI|conflict of interest policy]]'; |
|||
break; |
|||
case 'orphan': |
|||
text = '{' + '{' + 'orphan|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as being orphaned'; |
|||
break; |
|||
case 'subsections': |
|||
text = '{' + '{' + 'Subsections' + '}' + '}\n\n' + text; |
|||
summary = 'Marked article as needing subsections'; |
|||
break; |
|||
case 'trivia': |
|||
text = '{' + '{' + 'Trivia' + '}' + '}\n\n' + text; |
|||
summary = 'Marked article as containing an inappropriate trivia'; |
|||
break; |
|||
case 'unreferenced': |
|||
text = '{' + '{' + 'Unreferenced|date=' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as not properly citing its sources'; |
|||
break; |
|||
case 'wikify': |
|||
text = '{' + '{' + 'wikify|' + date.getUTCMonthName() + ' ' + date.getUTCFullYear() + '}}\n\n' + text; |
|||
summary = 'Marked article as needing wikification'; |
|||
break; |
|||
case 'can we link it': |
|||
window.location = "http://can-we-link-it.nickj.org/suggest-links/suggester.php?page=" + encodeURIComponent( wgPageName ); |
|||
break; |
|||
} |
|||
document.editform.wpSummary.value = summary; |
|||
document.editform.wpTextbox1.value = text; |
|||
if (minoredit == true) { |
|||
document.editform.wpMinoredit.checked = true; |
|||
} |
|||
if (autosubmit == true) { |
|||
document.editform.submit(); |
|||
} |
|||
} |
} |
||
/* |
|||
//// install [[User:Cacycle/wikEd]] in-browser text editor |
|||
addOnloadHook(function() { |
|||
document.write('<script type="text/javascript" src="' |
|||
if ( wgCanonicalNamespace in { "User":'', "User_talk":'' } ) { |
|||
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js' |
|||
return; |
|||
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>'); |
|||
} |
|||
*/ |
|||
if ( document.editform ) { |
|||
//</pre> |
|||
var tabs = document.getElementById( 'p-cactions' ).getElementsByTagName( 'ul' )[0]; |
|||
addlimenu(tabs, "tags", "tags" ); |
|||
addPortletLink("tags", "javascript:doCleanup('abbr')", "abbr", "abbr", "Add abbreviations template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('confusing')", "confusing", "confusing", "Add confusing template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('copyedit')", "copyedit", "copyedit", "Add Copyedit template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('context')", "context", "context", "Add Context template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('cleanup')", "cleanup", "cleanup", "Add cleanup template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('globalize')", "globalize", "globalize", "Add Globalize template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('resume')", "resume", "resume", "Add Like-resume template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('orphan')", "orphan", "orphan", "Add orphan template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('subsections')", "subsections", "subsections", "Add Subsections template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('trivia')", "trivia", "trivia", "Add Trivia template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('unreferenced')", "unreferenced", "unreferenced", "Add unreferenced template", ""); |
|||
addPortletLink("tags", "javascript:doCleanup('wikify')", "wikify", "wikify", "Add wikify template", ""); |
|||
if ( show_cwli == true ) { |
|||
addPortletLink("tags", "javascript:doCleanup('can we link it')", "can we link it", "can we link it", "Can we link it", ""); |
|||
} |
|||
} |
|||
}); |
|||
// </nowiki> |
|||
// </pre> |
Revision as of 19:14, 4 June 2007
//<pre>
// Script from [[User:Lupin/recent2.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/recent2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Lupin/popups.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popups.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// INTERIOT EDIT COUNT
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Interiot/Tool2/code.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
// [[User:Dschwen/wikiminiatlas2.js]] - please include this line
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Dschwen/wikiminiatlas2.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
function addLink(where, url, name, id, title, key, after){
//* where is the id of the toolbar where the button should be added;
// i.e. one of "p-cactions", "p-personal", "p-navigation", or "p-tb".
//
//* url is the URL which will be called when the button is clicked.
// javascript: urls can be used to do more complex things.
//
//* name is what will appear as the name of the button.
//
//* id is the id of the button; it's best to define one.
// Use a prefix to make sure its unique. Optional.
//
//* title is the tooltip title that gives a longer description
// of the button; if you define a accesskey, mention it here. Optional.
//
//* key is the char you want for the accesskey. Optional.
//
//* after is the id of the button you want to follow this one. Optional.
//
var na = document.createElement('a');
na.href = url;
na.appendChild(document.createTextNode(name));
var li = document.createElement('li');
if(id) li.id = id;
li.appendChild(na);
var tabs = document.getElementById(where).getElementsByTagName('ul')[0];
if(after) {
tabs.insertBefore(li,document.getElementById(after));
} else {
tabs.appendChild(li);
}
if(id) {
if(key && title) { ta[id] = [key, title]; }
else if(key) { ta[id] = [key, '']; }
else if(title) { ta[id] = ['', title];}
}
// re-render the title and accesskeys from existing code in wikibits.js
akeytt();
return li;
}
//addLink("p-tb","http://www.news.bbc.co.uk","Cat search","MS123","Category search","","");
//==== XEB Settings ====
//Which settings: Live,Dev,Karl,Test,DDev,MacGyverMagic
XEBSettings="Dev";
//======= Development XEB settings ==================
if(XEBSettings=="Dev")
{
//XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk";
var rmEditButtons = ['all'];
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk";
//myButtons={'_ZZ':['http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_headline2.png','Mark //Test','Before','After','Middle'],
//'_ZA':['http://upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png','Mark2 //Test','111','333','222']};
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/XEB/dev.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
//======= Test XEB settings ==================
if(XEBSettings=="Test")
{
var rmEditButtons = ['all'];
//DebugXEB=true;
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk";
myButtons={'_ZZ':['http://upload.wikimedia.org/wikipedia/commons/e/e9/Button_headline2.png','Mark Test','Before','After','Middle'],
'_ZA':['http://upload.wikimedia.org/wikipedia/commons/1/13/Button_enter.png','Mark2 //Test','111','333','222']};
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/XEB/test.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
//==== Live XEB Settings ====================================
if(XEBSettings=="Live")
{
var rmEditButtons = ['all'];
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk";
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
//==== Make XEB Settings ====================================
if(XEBSettings=="Mark")
{
var rmEditButtons = ['all'];
XEBOrder="0,1,3,4,5,6,7,8,9,10,FS,2,A,B,D,C,D1,E,_za,TS,TR,TC,TE,_zz,2,F,G,H,I1,I2,J1,K,L,M,O,Q,R,R3,S,T,U,V,W,X,D,J2,P,P1,R1,R2,R4,T1,Y1,Y2,Z,AI,N,GEO,Talk";
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
//==== Default XEB Settings ====================================
if(XEBSettings=="Default")
{
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
if(XEBSettings=="MacGyverMagic")
{
// Script from [[User:MarkS/extraeditbuttons.js]]
//rmEditButtons=[3,4,5,6,7,10,A,Q,W,X,L,T];
myButtons={
'_WEB':['http://upload.wikimedia.org/wikipedia/commons/7/73/External_link_icon.png','cite web','Before1','After1','Text1'],'CODE2':['url2','Tooltip2','{{','}}','cite news | last = | first = | coauthors = | title = | work = | pages = | language = | publisher = | date = | url = | accessdate =']};
rmEditButtons=[3,4,5,6,7,10];
XEBOrder="0,1,2,AI,8,9,B,D,C,D1,F,U,S,I1,I2,J2,E,G,K,M,H,O,R,V,FS,N,R1,R2,R3,TL,Z,_WEB,CODE2";
//importScript('MarkS/extraeditbuttons');//[[User:MarkS/extraeditbuttons.js]]
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:MarkS/extraeditbuttons.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
}
/*
//// install [[User:Cacycle/wikEd]] in-browser text editor
document.write('<script type="text/javascript" src="'
+ 'http://en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
*/
//</pre>