边栏助手-圣诞小镇页面开启

This commit is contained in:
Liwanyi 2022-12-20 15:52:15 +08:00
parent b8bb19e6a6
commit b8a7791d5f
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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 {