边栏助手-圣诞小镇页面开启
This commit is contained in:
parent
b8bb19e6a6
commit
b8a7791d5f
@ -494,7 +494,6 @@ let func = function (GM_addStyle, unsafeWindow, GM_getValue, GM_setValue, GM_xml
|
||||
url: 'https://sguc.wanzixx.stream/macros/s/AKfycbyRfg1Cx2Jm3IuCWASUu8czKeP3wm5jKsie4T4bxwZHzXTmPbaw4ybPRA/exec?key=getItems',
|
||||
onload: function (e) {
|
||||
try {
|
||||
console.log(e.responseText)
|
||||
let data = JSON.parse(e.responseText);
|
||||
if (data.items) {
|
||||
let items = data.items;
|
||||
|
||||
@ -23,7 +23,7 @@ export default class SidebarHelper extends WuhuBase {
|
||||
this.toggleBtn = document.createElement('button');
|
||||
this.isHide = !!WuhuConfig.get('HideSidebar');
|
||||
|
||||
if (!document.body.classList.contains('without-sidebar')) {
|
||||
if (!document.body.classList.contains('without-sidebar') || window.location.href.includes('christmas_town.php')) {
|
||||
this.initToggleBtn();
|
||||
this.barRedirect();
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user