User:Bfigura/monobook.js
Appearance
Code that you insert on this page could contain malicious content capable of compromising your account. If you import a script from another page with "importScript", "mw.loader.load", "iusc", or "lusc", take note that this causes you to dynamically load a remote script, which could be changed by others. Editors are responsible for all edits and actions they perform, including by scripts. User scripts are not centrally supported and may malfunction or become inoperable due to software changes. A guide to help you find broken scripts is available. If you are unsure whether code you are adding to this page is safe, you can ask at the appropriate village pump. This code will be executed when previewing this page. |
The accompanying .css page for this skin is at User:Bfigura/monobook.css. |
//Block-user striker
importScript('User:NuclearWarfare/Mark-blocked script.js');
//Lupin's AVT
//importScript("User:Lupin/recent2.js");
//importScript('User:Lupin/autoedit.js'); //[[User:Lupin/autoedit.js]]
//Admin Highlighter
//importScript('User:Ais523/adminrights.js');
//Friendly
importScript('User:Ioeth/friendly.js');
// [[User:Wikidudeman/wikidudemandeluxe.js]]
//importScript('User:Wikidudeman/wikidudemandeluxe.js');
/*
//importScript('User:Bfigura/morebits.js');
importScript('User:AzaToth/morebits.js');
importScript('User:AzaToth/twinklefluff.js');
importScript('User:Bfigura/twinklewarn.js');
importScript('User:AzaToth/twinkleprotect.js');
importScript('User:AzaToth/twinklearv.js');
importScript('User:Bfigura/twinklespeedy.js');
//importScript('User:AzaToth/twinklespeedy.js');
importScript('User:AzaToth/twinkleimage.js');
importScript('User:AzaToth/twinklediff.js');
importScript('User:AzaToth/twinklexfd.js');
importScript('User:AzaToth/twinkleunlink.js');
importScript('User:AzaToth/twinkleprod.js');
*/
importScript('User:AzaToth/twinkle.js');
//importScript('User:AA/scripts/twinklenotices.js');
//importScript('User:Timotab/twinklefix.js');
// [[User:Wikidudeman/wikidudemandeluxe.js]]
// importScript('User:Wikidudeman/wikidudemandeluxe.js');
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'window',
showSharedIPNotice : true,
openTalkPage : [ 'agf', 'norm', 'vand' ],
openTalkPageOnAutoRevert : false,
openAOLAnonTalkPage : false,
summaryAd : " using [[WP:TWINKLE|TW]]",
deletionSummaryAd : " using [[WP:TWINKLE|TW]]",
protectionSummaryAd : " using [[WP:TWINKLE|TW]]",
watchSpeedyPages : [ 'g3', 'g5', 'g10', 'g11', 'g12' ],
watchProdPages : true,
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,
watchWarnings : true,
markAIVReportAsMinor : false,
markSpeedyPagesAsMinor : false,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};
// ADD UNWATCH LINKS:
$(function () {
if (!mw.config.get('wgCanonicalSpecialPageName') || mw.config.get('wgCanonicalSpecialPageName') != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;
//var query_prefix = "title="+encodeURIComponent(mw.config.get('wgPageName'))+"&action=submit&remove=1&id[]=";
var query_prefix = "action=unwatch&title=";
// get list of all links in content:
var links = document.getElementById('content').getElementsByTagName('a');
// make a static copy of the nodelist and lose the original for speed
// while we're at it, prune the uninteresting links from the list
var linksCopy = new Array ();
for (var i = 0; i < links.length; i++) {
if (/[?&]action=history([&#]|$)/.test(links[i].href)) linksCopy.push(links[i]);
}
links = linksCopy;
for (var i = 0; i < links.length; i++) {
// create unwatch link and append it after history link
var unwatch = document.createElement('a');
unwatch.href = mw.config.get('wgServer') + mw.config.get('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);
}
});
/**** afd helper ****/
document.write('<script type="text/javascript"' +
'src="http://en.wikipedia.org/w/index.php?title=User:Jnothman/afd_helper/' +
'script.js&action=raw&ctype=text/javascript&dontcountme=s"></script>');
/* This is to keep track of who is using this extension: [[User:Jnothman/afd_helper/script.js]] */
importScript('User:Wikidudeman/tags.js');
var FlexiTagConfig = {};
FlexiTagConfig.autosubmit = false;
FlexiTagConfig.minoredit = true;
FlexiTagConfig.tabs = new Array();
FlexiTagConfig.tabs.push(
{ name:'Tags',
namespace:['Main'],
tagset:[['external-links|%date','See [[WP:EL]]'],
['ActiveDiscuss','ActiveDiscuss'],
['Advert','Advert'],
['cleanup','Adding Cleanup Tag'],
['Contradict','Section or article is contradictory'],
['Copyedit','Copyedit'],
['Disputeabout|%prompt(Point of dispute.)'],
['Merge|%prompt(Merge with)'],
['Mergeto|%prompt(Merged into)'],
['Notenglish|%prompt(language is?)'],
['Underconstruction','Underconstruction'],
['Original research','Original research'],
['POV','POV tag added'],
['POV-section','POV section tag added'],
['trivia','Adding Trivia Section'],
['Uncat','Uncat'],
['Unreferenced','Section is not referenced'],
['Wikify','Wikify needed']]
}
);
FlexiTagConfig.tabs.push(
{ name:'uw',
namespace:['User_talk'],
tagset:[['subst:nn-warn|%twinkarticle','Creation Warning'],
['subst:spam-warn|%twinkarticle','Creation Warning'],
['subst:Warning|%prompt(Warning is?)','Warning'],
['subst:test1article|%twinkAarticle','Creation Warning'],
['subst:Gblock-i|%prompt(reason for indef block)','Blocked'],
['subst:GBlock|%prompt(reason for temp block)|*DURATION*','Blocked']]
});
FlexiTagConfig.tabs.push(
{ name:'banned',
namespace:['User'],
tagset:[['banned user','This user is banned'],
['sockpuppet|%prompt(username)|confirmed','Sockpuppet'],
['Indefblockeduser','This user is blocked indef.']]
}
);
//</nowiki>
//</pre>