User:Δ/monobook.js: Difference between revisions

Content deleted Content added
m Maintenance: Replacing importScriptURI with mw.loader.load (phab:T95964)
m Maintenance: Replacing addPortletLink() with mw.util.addPortletLink() (mw:ResourceLoader/Migration_guide_(users)#addPortletLink)
 
(2 intermediate revisions by 2 users not shown)
Line 1:
$.fx.off = true;
if(mw.config.get('wgNamespaceNumber')==0) mw.util.addPortletLink('p-cactions', 'http://toolserver.org/~betacommand/cgi-bin/img_removal.py?title=' + encodeURIComponent(mw.config.get('wgPageName')), 'Check files');
if (mw.config.get('wgNamespaceNumber')==0) mw.util.addPortletLink('p-cactions', 'http://toolserver.org/~betacommand/cgi-bin/fix_refs?page=' + encodeURIComponent(mw.config.get('wgPageName'))+'&fr=True', 'Fix Refs');
if (mw.config.get('wgNamespaceNumber')==2) mw.util.addPortletLink('p-cactions', 'http://toolserver.org/~betacommand/cgi-bin/fix_refs?page=' + encodeURIComponent(mw.config.get('wgPageName'))+'&fr=True', 'Fix Refs');
importScript('User:Δ/NFCC alt.js');
addOnloadHook$(function() {
var item = mw.util.addPortletLink('p-cactions','','βsocks','ca-betasocks','Check socks with Betacommand\'s tool','',null);
var link=item.firstChild;
link.onclick = function() {