Difference between revisions of "User:Waldir/vector.js"

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(test)
(try loading HotCat directly)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Js/6tabs-vector.js&action=raw&ctype=text/javascript');
+
//mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:Waldyrious/global.js&action=raw&ctype=text/javascript' );
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript');
 
  
// Create portlet link
+
 
var portletLink = mw.util.addPortletLink( 'p-namespaces', '#',
+
mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );
        'My new portlet link', 'ca-my-portlet', 'Click here to test the new portlet'
 
);
 
// Bind click handler
 
$( portletLink ).click( function ( e ) {
 
        e.preventDefault();
 
        // doSomeStuff();
 
        alert( 'It works!' );
 
});
 

Latest revision as of 10:11, 7 August 2023

//mw.loader.load( 'https://meta.wikimedia.org/w/index.php?title=User:Waldyrious/global.js&action=raw&ctype=text/javascript' );


mw.loader.load( '//commons.wikimedia.org/w/index.php?title=MediaWiki:Gadget-HotCat.js&action=raw&ctype=text/javascript' );