User:TheColdPot/global.js

const userInTop = document.createElement('div'); //$('body').append(userInTop); const $uit = $(userInTop); $uit.addClass('wds-dropdown').addClass('user-top-bar').html(' 用户  退出  参数设置查看个人资料</a></li></ul>  ');

const wiInTop = document.createElement('div'); const $wit = $(wiInTop); $wit.addClass('wds-dropdown').addClass('wikiop-top-bar').html('<div class="wds-tabs__tab-label wds-dropdown__toggle first-level-item"> Fandom </a><svg class="wds-icon wds-icon-tiny wds-dropdown__toggle-chevron"><use xlink:href="#wds-icons-dropdown-tiny"> <div class="wds-dropdown__content"><ul class="wds-list wds-is-linked">创建WIKI</a></li>搜索</a></li>探索</a></li></ul>  ');

$('nav>ul').append($wit);$('nav>ul').append($uit); /*const notifInTop = document.createElement('div'); const $nit = $(notifInTop); window.dn = false; $nit.addClass('wds-button').css({cursor: 'pointer'}).addClass('wds-is-secondary').on('click', function {	window.dn = !window.dn;	//if (window.dn) {		$('.notifications wds-dropdown.wds-is-not-hoverable.wds-open-to-right.is-attached-to-bottom .wds-dropdown__content').css({ display: window.dn ? 'flex' : 'none'});	//} }).html('<svg class="wds-icon wds-icon-small"><use xlink:href="#wds-icons-bell"> '); $('.wds-button.wds-is-secondary.wiki-tools__theme-switch').after($nit);*/