User:Bradv/modern.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 can be added at User:Bradv/modern.css. |
importScript('User:Bradv/sprint.js');
importScript('User:Bradv/splitpreview.js');
importScript('User:AzaToth/twinkle.js');
TwinkleConfig = {
summaryAd : "",
deletionSummaryAd : "",
protectionSummaryAd : ""
};
importScript('User:Ioeth/friendly.js');
FriendlyConfig = {
summaryAd : ""
};
importScript('user:js/watchlist.js')
importScript('User:Mr.Z-man/patrollinks.js'); //Patrol links on new pages
//Wikipedia:WikiProject User scripts/Scripts/Search links - This script adds search links to the toolbox.
$(function () {
if (mw.config.get('wgCanonicalNamespace') == "Special")
return; // no links for special pages
var title = mw.config.get('wgTitle');
if (mw.config.get('wgCanonicalNamespace') != "")
title = title.replace(/^.*\//, ""); // subpage name only
var query = encodeURIComponent('"'+title+'" -Wikipedia' );
mw.util.addPortletLink('p-tb', 'http://www.google.com/search?&q='+query,
'Google', 't-googlesearch', 'Search Google for "'+title+'"', 'W');
mw.util.addPortletLink('p-tb', 'http://news.google.com/archivesearch?&as_price=p1&as_src=-newswire+-wire+-presswire+-PR+-press+-release&q='+query,
'Google News', 't-googlenewssearch', 'Search Google News Archive for "'+title+'"', 'N');
mw.util.addPortletLink('p-tb', 'http://books.google.com/books?&as_brr=3&q='+query,
'Google Books', 't-googlebookssearch', 'Search Google Books for "'+title+'"', 'B');
mw.util.addPortletLink('p-tb', 'http://scholar.google.com/scholar?&q='+query,
'Google Scholar', 't-googlescholarsearch', 'Search Google Scholar for "'+title+'"', 'S');
});
importScript('User:Ais523/topcontrib.js'); // [[User:Ais523/topcontrib.js]]
//### old stuff ###
//importScript('User:Lupin/recent2.js'); //Monitor recent changes / watchlist - only works with monobook
//importScript('User:Ais523/watchlistnotifier.js'); //Notifies of changes to watchlist at top of page
//importScript('User:Tra/userwatchlist.js'); //[[User:Tra/userwatchlist.js]] - User watchlist
//importScript('User:Bradv/catlist.js');
//importScript('User:Bradv/NewPagePatrol.js'); //Forked from TheJosh in order to ignore redirects
//importScript('User:TheJosh/Scripts/RecentChangesPatrol.js');