User:Dgw/monobook.js
Appearance
< User:Dgw
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:Dgw/monobook.css. |
/* TEST SCRIPT: My script to prompt for an edit summary on clicking a different rollback link */
importScript('User:Voyagerfan5761/rollbacksummary.js');
/*
* Prefixprompt - adds a prefix lookup link to the toolbox which prompts for a prefix
* Defaults to the current page title.
*/
importScript('User:Voyagerfan5761/prefixprompt.js');
/* Addtabs from VoiceOfAll */
importScript('User:Voice_of_All/Addtabs/monobook.js');
/* Twinkle from WP:TWINKLE ([[Wikipedia:WikiProject User scripts/Scripts/Twinkle]]) */
importScript('User:AzaToth/twinkle.js');
/* Twinkle configuration */
TwinkleConfig = {
revertMaxRevisions : 50,
userTalkPageMode : 'tab',
showSharedIPNotice : false,
openTalkPage : [ '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 : [ ],
markRevertedPagesAsMinor : [ ],
deleteTalkPageOnDelete : false,
watchWarnings : true,
markAIVReportAsMinor : false,
markSpeedyPagesAsMinor : true,
offerReasonOnNormalRevert : true,
orphanBacklinksOnSpeedyDelete : {orphan:true, exclude:['g6']}
};
/* Friendly, a tagging interface based on Twinkle's morebits.js */
importScript('User:Ioeth/friendly.js');
/* Config options for Friendly */
FriendlyConfig = {
summaryAd : " using [[WP:FRIENDLY|Friendly]]",
topWelcomes : false,
watchWelcomes : true,
markWelcomesAsMinor : false,
watchTaggedPages : true,
markTaggedPagesAsMinor : true,
insertHeadings : true,
welcomeHeading : "== Welcome to Wikipedia ==",
insertUsername : true,
insertSignature : true,
quickWelcomeMode : "semiauto",
quickWelcomeTemplate : "Welcome",
markSharedAsMinor : true,
groupByDefault : true,
};
/* FurMe, a tool to tag images with Fair Use rationales, also based on morebits.js */
importScript('User:AWeenieMan/furme.js');
/* Config for FurMe */
FurMeConfig = {
actionOnSubmit : 'diff'
};
/* wikEd by Cacycle */
/* Configuration and extra options for wikEd */
var wikEdHighlightSyntaxPreset = true;
var wikEdRegExTypoFix = true;
var wikEdShowSourceButton = true;
var wikEdUsingPreset = false;
var wikEdCloseToolbarPreset = true;
var wikEdRefHidePreset = false;
var wikEdDiffPreset = true;
var wikEdShowUsingButton = true;
var wikEdSummaryUsing = '…using [[User:Cacycle/wikEd|wikEd]]';
var wikEdLoadDiff = true;
// install [[User:Cacycle/wikEd]] in-browser text editor
importScript("User:Cacycle/wikEd.js");
/* Ilmari Karonen's script to unwatch redlinks */
importScript("User:Ilmari Karonen/unwatchredlinks.js");
/* Loads Alex Smotrov's wlunwatch script when the link is clicked */
if (wgCanonicalSpecialPageName && wgCanonicalSpecialPageName=='Watchlist' && wgAction=='view')
addOnloadHook(function () {
var frm = document.getElementsByTagName('form')[0];
frm.parentNode.insertBefore(document.createTextNode(' | '), frm);
var lnk = document.createElement('a');
lnk.appendChild(document.createTextNode('Unwatch…'));
lnk.href = 'javascript:importScript("User:Alex_Smotrov/wlunwatch.js")';
frm.parentNode.insertBefore(lnk, frm);
})
/* Alex Smotrov's History Combiner */
importScript('User:Alex Smotrov/histcomb.js');
/* Henrik's Live Edit Counter
Requires addition of "User:Henrik/ubx/User contrib" to userpage */
importScript('User:Henrik/js/live-edit-counter.js');
/* Lupin's Anti-Vandal Tool */
importScript("User:Lupin/recent2.js");
/* Jnothman's afd helper */
importScript("User:Jnothman/afd_helper/script.js");
/* Interiot's RealTitle Script */
importScript("User:Interiot/js/RealTitle.js");
/* Misza13's Status Switcher Script */
// Modified by Voyagerfan5761 for some minor improvements
addOnloadHook(function (){
var subpage = "/Status";
var scheme = "/StatusText";
var linkprefix = wgServer+wgScript+"?title=User:";
//Add the links
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=in", "In", "pt-status-in", "I'm in!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=busy", "Busy", "pt-status-busy", "I'm busy!", "", "pt-logout");
addLink("p-personal", linkprefix+wgUserName+subpage+"&action=edit&newstatus=out", "Out", "pt-status-out", "I'm out!", "", "pt-logout");
if (location.href.indexOf("&action=edit&newstatus=") == -1) return; //Are we here to auto-edit the status?
//Get new status
statusRegExp = /&action=edit&newstatus=(.*)/;
status = statusRegExp.exec(location.href)[1];
//Modify the form
document.getElementById('wpTextbox1').value = "{{User:"+wgUserName+scheme+"|"+status+"}}";
document.getElementById('wpSummary').value = "Status update: "+status;
document.getElementById('wpMinoredit').checked = true;
//Submit it!
document.getElementById('editform').submit();
});
/* Popup Navigation Script */
// [[User:Lupin/popups.js]]
importScript('User:Lupin/popups.js');
/* Begin Configuration for Popup Navigation Script */
popupStructure='menus';
popupShortcutKeys=true;
popupRedlinkRemoval=true;
popupFixDabs=true;
popupEditCounterTool='custom';
popupEditCounterUrl='http://tools.wikimedia.de/~interiot/cgi-bin/Tool1/wannabe_kate?username=$1&site=en.wikipedia.org';
popupRevertSummaryPrompt=true;
popupQueriedRevertSummary="Revert to revision $1 dated $2 by [[Special:Contributions/$3|$3]] using [[:en:Wikipedia:Tools/Navigation_popups|popups]]";
popupQueriedRevertToPreviousSummary="Revert to the revision prior to revision $1 dated $2 by [[Special:Contributions/$3|$3]] using [[:en:Wikipedia:Tools/Navigation_popups|popups]]";
popupRedlinkSummary="Removed unnecessary redlink (%s)";
popupFixDabsSummary="Disambiguating link to disambiguation page %s with a link to %s";
popupLazyDownloads=false;
popupLazyPreviews=false;
popupDragHandle="navpopup_maindiv0";
/* End configuration for Popup Navigation Script */
/* Lupin's Editcounter JS */
// Script from [[User:Lupin/editcount.js]]
// importScript("User:Lupin/editcount.js");
/* Zocky's Picture Popups Script */
// [[User:Zocky/PicturePopups.js]]
importScript("User:Zocky/PicturePopups.js");
/* Add Intro Edit Link Script */
// This will add an [edit] link at the top of all pages except preview pages and the main page
// by User:Pile0nades
// Modified by User:Voyagerfan5761 to detect special pages better
// Add an [edit] link to pages
addOnloadHook(function () {
// if this is preview page or generated page, stop
if(document.getElementById("wikiPreview")) return;
// if this is a revision history, stop
if(document.getElementById("histlegend?")) return;
// if this is a diff page, stop
if(document.getElementById("difference?")) return;
// if this is a special page, stop
if(wgCanonicalNamespace == "Special") return;
// if this is the main page, stop
if(document.getElementById("mainpage")) return;
// get the page title
var pageTitle = document.title.split(" - ")[0].replace(" ", "_");
// create div and set innerHTML to link
var divContainer = document.createElement("div");
divContainer.innerHTML = '<div class="editsection" style="float:right;margin-left:5px;margin-right:0px;margin-top:47px;">[<a href="/w/index.php?title='+pageTitle+'&action=edit§ion=0" title="'+document.title.split(" - ")[0]+'">edit</a>]</div>';
// insert divContainer into the DOM below the h1
if(window.location.href.indexOf("&action=edit") == -1)
document.getElementById("content").insertBefore(divContainer, document.getElementsByTagName("h1")[0]);
if(window.location.href.indexOf("&action=edit§ion=0") != -1)
document.getElementById("wpSummary").value = "/* Intro */ ";
});
/* VoiceOfAll's contribs stats */
importScript("User:Voice_of_All/History/monobook.js");
/* Ioeth's customized UTC clock */
importScript('User:Ioeth/clock.js');
/* My object-array-fed link text changer
Hat tip to Ioeth for the inspiration */
importScript('User:Voyagerfan5761/changelinks.js');
/* Six Tabs - Makes two sets of edit and history links, one for content and one for talk */
/* Disabled until I can come up with an easy way to shorten the tabs bar or move other scripts' links
importScript("Wikipedia:WikiProject_User_scripts/Scripts/Six_tabs");
*/