Community Central
Community Central
No edit summary
Tag: sourceedit
No edit summary
Tag: sourceedit
Line 18: Line 18:
 
var AjaxRCRefreshText = 'Auto-refresh';
 
var AjaxRCRefreshText = 'Auto-refresh';
 
 
  +
/* Imports */
 
 
importArticles({
 
type: "script",
 
articles: [
 
"w:c:wingsoffirefanon:MediaWiki:Snow.js"
 
]
 
});
 
 
 
 
var hasClass = (function () {
 
var hasClass = (function () {
Line 33: Line 26:
 
};
 
};
 
})();
 
})();
  +
 

Revision as of 00:57, 9 January 2017

 importScriptPage('AjaxRC/code.js', 'dev');
 importScriptPage('ChatOptions/code.js', 'dev');
importArticles({
type: 'script',
articles: [
// ...
'u:dev:LastEdited/code.js',
// ... 
]
});
 
 
/* Removing first half of hideous Fandom logo */
 
$('svg.wds-global-navigation__logo-image.wds-is-wds-company-logo-fandom').replaceWith('<img src="http://vignette2.wikia.nocookie.net/fghfghfgh510s-sandbox/images/2/2f/Wikia_logo_large.jpg/revision/latest?cb=20161004230637" />');

var ajaxPages = ['Special:RecentChanges','Special:WikiActivity','Special:Contributions'];
var AjaxRCRefreshText = 'Auto-refresh';
 

 
var hasClass = (function () {
    var reCache = {};
    return function (element, className) {
        return (reCache[className] ? reCache[className] : (reCache[className] = new RegExp("(?:\\s|^)" + className + "(?:\\s|$)"))).test(element.className);
    };
})();