No edit summary Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 20: | Line 20: | ||
function UserContribsMenuItem() { |
function UserContribsMenuItem() { |
||
+ | console.log("Location:"); |
||
console.log(window.location.hostname); |
console.log(window.location.hostname); |
||
$('#globalNavigation').children().first().children().eq(2).children().last().children().first().children().eq(2).html('<a href="' + window.location.hostname + '/wiki/Special:Contributions/'+ encodeURIComponent (wgUserName) +'" class="wds-global-navigation__dropdown-link" data-tracking-label="global-navigation-user-my-preferences"><br>My Contributions</a>'); |
$('#globalNavigation').children().first().children().eq(2).children().last().children().first().children().eq(2).html('<a href="' + window.location.hostname + '/wiki/Special:Contributions/'+ encodeURIComponent (wgUserName) +'" class="wds-global-navigation__dropdown-link" data-tracking-label="global-navigation-user-my-preferences"><br>My Contributions</a>'); |
Revision as of 16:22, 31 July 2017
$(document).ready(function() {
$('.wds-is-wds-company-logo-fandom').replaceWith('<img src="http://vignette4.wikia.nocookie.net/csydes-test/images/b/b8/Wikia_%28The_Home_of_Fandom%29_Logo.png/revision/latest?cb=20161105000525" />');
$('.wds-is-wds-company-logo-powered-by-wikia').replaceWith('<img src="http://vignette4.wikia.nocookie.net/csydes-test/images/c/c4/%28Wikia%29_The_Home_of_Fandom_Logo.png/revision/latest?cb=20161105000735" />');
window.ajaxPages = ["Special:RecentChanges","Special:Watchlist","Special:Log","Special:Contributions"];
importScriptPage('AjaxRC/code.js', 'dev');
importScriptPage('ViewRemoved/code.js', 'dev');
importScriptPage('InactiveUsers/code.js', 'dev');
importArticles({
type: 'script',
articles: [
// ...
'w:c:dev:SignatureCheck/code.js',
// ...
]
});
importScriptPage("CategoryRenameAuto-update/code.js", "dev");
importScriptPage('User:Monchoman45/ChatHacks.js', 'c');
function UserContribsMenuItem() {
console.log("Location:");
console.log(window.location.hostname);
$('#globalNavigation').children().first().children().eq(2).children().last().children().first().children().eq(2).html('<a href="' + window.location.hostname + '/wiki/Special:Contributions/'+ encodeURIComponent (wgUserName) +'" class="wds-global-navigation__dropdown-link" data-tracking-label="global-navigation-user-my-preferences"><br>My Contributions</a>');
/*$('ul.AccountNavigation li:first-child ul.subnav li:first-child').after('<li><a href="/wiki/Special:Contributions/'+ encodeURIComponent (wgUserName) +'">My contributions</a></li>');
$('ul.AccountNavigation li:last-child ul.subnav li:last-child').remove();
$('ul.AccountNavigation li:last-child ul.subnav li:last-child').replaceWith('<li><a href="/wiki/Special:UserLogout?returnto='+ encodeURIComponent (wgPageName) +'">Log out</a></li>');*/
}
UserContribsMenuItem();
importArticles({
type: 'script',
articles: [
// ...
'u:kocka:MediaWiki:Emoticons.js',
// ...
]
});
});