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

Explain xkcd: It's 'cause you're dumb.
Jump to: navigation, search
(retry)
Line 3: Line 3:
  
 
addOnloadHook(function () {
 
addOnloadHook(function () {
  if(wgCanonicalSpecialPageName == 'Contributions')
+
alert("it works?");
    addPortletLink('p-cactions', 'javascript:alert("it works!")', 'show/hide top', 'ca-hidetop',
+
//  if(wgCanonicalSpecialPageName == 'Contributions')
                    "Show/hide pages for which you're the top contributor", '');
+
//    addPortletLink('p-cactions', 'javascript:alert("it works!")', 'show/hide top', 'ca-hidetop',
 +
//                    "Show/hide pages for which you're the top contributor", '');
 
});
 
});

Revision as of 12:55, 22 November 2012

importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Js/6tabs-vector.js&action=raw&ctype=text/javascript');
importScriptURI('http://en.wikipedia.org/w/index.php?title=User:Markhurd/hidetopcontrib.js&action=raw&ctype=text/javascript');

addOnloadHook(function () {
alert("it works?");
//   if(wgCanonicalSpecialPageName == 'Contributions')
//     addPortletLink('p-cactions', 'javascript:alert("it works!")', 'show/hide top', 'ca-hidetop',
//                    "Show/hide pages for which you're the top contributor", '');
});