No edit summary |
No edit summary |
||
(2 intermediate revisions by the same user not shown) | |||
Line 18: | Line 18: | ||
] |
] |
||
}); |
}); |
||
+ | |||
+ | /* Adding the PortableCSSPad Link to the new article layout */ |
||
+ | if ($('.article-navigation').length){ // If you see the article navigation... |
||
+ | var userToolsDropdown = $('.article-navigation').find('#userToolsDropdown'), |
||
+ | userToolsCustomizeLink = userToolsDropdown.find('li.wikia-dropdown-nav-item:last-of-type'), |
||
+ | PortableCSSPadLink = '<li class="wikia-dropdown-nav-item" id="PortableCSSPadLink"><a href="javascript:void(0);" class="PortableCSSPad-wikialoader-link">PortableCSSPad</a></li>'; |
||
+ | if (!$('#PortableCSSPadLink').length){ |
||
+ | userToolsCustomizeLink.before(PortableCSSPadLink); |
||
+ | } |
||
+ | } |
Revision as of 01:04, 19 December 2014
cacheSkip = [];
cacheSkipLimit = 1000;
importScriptPage('User:Monchoman45/ChatHacks.js', 'c');
importScriptPage('MessageBlocker/code.js', 'dev');
importArticles({
type: 'script',
articles: [
'u:dev:NullEditButton/code.js',
'u:dev:AntiUnicruft/code.js',
'u:dev:BackToTopButton/code.js',
'u:dev:PortableCSSPad/code.js',
'u:dev:WHAM/code.js',
'u:dev:QuickModTools/loader.js',
'u:dev:CacheCheck/code.js',
'u:dev:MassNullEdit/code.js'
]
});
/* Adding the PortableCSSPad Link to the new article layout */
if ($('.article-navigation').length){ // If you see the article navigation...
var userToolsDropdown = $('.article-navigation').find('#userToolsDropdown'),
userToolsCustomizeLink = userToolsDropdown.find('li.wikia-dropdown-nav-item:last-of-type'),
PortableCSSPadLink = '<li class="wikia-dropdown-nav-item" id="PortableCSSPadLink"><a href="javascript:void(0);" class="PortableCSSPad-wikialoader-link">PortableCSSPad</a></li>';
if (!$('#PortableCSSPadLink').length){
userToolsCustomizeLink.before(PortableCSSPadLink);
}
}