您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Lightweight script that monitors your instagram-journey and kills annoying overlays at real-time mode. It let you save photos just using default context-menu.
当前为
// ==UserScript== // @name instaclear // @namespace sanyabeat.instaclear // @version 1.4 // @description Lightweight script that monitors your instagram-journey and kills annoying overlays at real-time mode. It let you save photos just using default context-menu. // @author sanyabeast <[email protected]> // @match https://www.instagram.com/ // @match https://www.instagram.com/* // @match https://www.instagram.com/*/* // @grant none // ==/UserScript== (function() { 'use strict'; console.log("%cinstacler works", "color: magenta") function clear_instagram () { let cleared_count = 0 let o = document.querySelectorAll("div + div"); for ( let i=0; i<o.length; i++ ){ if (o[i].attributes.length === 1 && o[i].children.length === 0 && o[i].style.zIndex !== "-1") { cleared_count++ o[i].style.zIndex = "-1" } } if (cleared_count > 0 ) console.log(`%cjust cleared ${cleared_count} emptyboxes`, "color: orange") } let observer = new MutationObserver( e => setTimeout(clear_instagram, 250) ); observer.observe( document.body, { attributes: true, childList: true, subtree: true } ); })();