User:Mazbel/common.js
(Redirected from User:Leitoxx/common.js)
Note: After publishing, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Press Ctrl-F5.
/* CleanChanges auto-expander. Please credit [[m:User:PiRSquared17]] if used. */
/*$(window).load(function () {
$('a[href^="javascript:toggleVisibilityE"]:odd, span[id^="RCUM"] a').each(function (i, x) {
eval($(x).attr('href').substring(11)); // eval is evil, but alternatives (.click() and window.location.href = xyz don't work for me)
});
});*/
// CleanChanges auto-expander. (Credit to [[m:User:PiRSquared17]])
/* fancier version - Quiddity: please try this, tell me if it's better or worse
var evalLinks = function(x) { $(x).each(function(i,t) {eval($(t).attr('href').substring(11));}); };
var toggleOptions = ['a[href^="javascript:toggleVisibilityE"]:odd', 'span[id^="RCUM"] a'];
$(window).load(
function() {
$('<a href="javascript:evalLinks(toggleOptions[0])">± (expand/collapse)</a>').appendTo('#mw-watchlist-options, .rcoptions');
evalLinks(toggleOptions.join(','));
}
);
*/
$('#pt-betafeatures').hide();