您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fixes my bad code while we wait for the webstores to publish the update.
// ==UserScript== // @name MTS Sidebar Fix // @namespace https://gist.github.com/Kadauchi // @version 1.0.0 // @description Fixes my bad code while we wait for the webstores to publish the update. // @author Kadauchi // @include * // ==/UserScript== const observer = new MutationObserver((mutationList, observer)=> { const iframe = document.querySelector('iframe[src*="/features/sidebar/pages/sidebar.html"]'); if (iframe) { iframe.src= iframe.src.replace('/features', ''); } }); observer.observe(document.body, { childList: true, subtree: true });