User:Coin945/vector.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:Coin945/vector.css. |
importScript('User:TheDJ/sharebox.js');
importScript('User:Yair rand/ReferenceTooltips.js'); importStylesheet('User:Yair rand/ReferenceTooltips.css');
/**
* Unwatch from watchlist ([[bugzilla:424]])
* Unwatchlink per item on watchlist (adds " | unwatch" for each entry)
* Rewritten by Krinkle (2011-01-31)
*
* @source: www.mediawiki.org/wiki/Snippets/Unwatch_from_watchlist
* @rev: 1
*/
function addUnwatchlink(){
// Only on Watchlist and not in the /edit or /raw mod
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Watchlist' || window.location.href.indexOf( '/edit' ) > 0 || window.location.href.indexOf( '/raw' ) > 0 ) {
return false;
}
// Get the links
var $wlHistLinks = $( '#content' ).find( 'ul.special > li > a[href$="action=history"]');
$.each( $wlHistLinks, function() {
var $el = $( this ), // Cache the result instead of calling $() again
$unwatch = $el.clone()
.text( 'unwatch' )
.attr( 'href', function( i, val ) {
return val.replace( 'action=history', 'action=unwatch' );
} );
$el.after( $unwatch ).after( ' | ' );
});
}
$(document).ready( addUnwatchlink );
importScript('User:Salix alba/Citoid.js');
importScript('User:Shubinator/DYKcheck.js'); //DYKcheck tool