您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Nuke All Infinity Pools by disabling forever-scrolling and recommendations!
当前为
// ==UserScript== // @name Infinity Pool Drain // @namespace primal.red // @version 0.3 // @license MIT // @description Nuke All Infinity Pools by disabling forever-scrolling and recommendations! // @match https://*.reddit.com/* // @match https://*.facebook.com/* // @match https://*.fetlife.com/* // @match https://*.discord.com/* // @match https://*.youtube.com/* // @match https://*.twitter.com/* // @author Leo Long // @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net // @grant none // ==/UserScript== (function() { 'use strict'; window.onload = function (){ if(document.URL.match('fetlife.com') != null){ if( document.querySelectorAll('masonry-layout')[0] != null){ document.querySelectorAll('masonry-layout')[0].style.visibility='hidden' } if( document.URL.match('fetlife.com/home$') != null && document.querySelectorAll('#stories-list')[0] != null){ document.querySelectorAll('#stories-list')[0].style.visibility='hidden' } if(document.URL.match('\/groups\/') && document.querySelectorAll('main')[0]){ document.querySelectorAll('main')[0].style.visibility='hidden' } } if(document.URL.match('discord.com') != null){ if(document.URL.match( '@me') == null){ window.location = 'https://discord.com/channels/@me' } document.querySelectorAll('[role=tree]')[0].style.visibility='hidden' } if(document.URL.match('facebook.com') != null){ if(document.querySelectorAll('[role=main]')[0].previousElementSibling != null){ document.querySelectorAll('[role=main]')[0].style.visibility='hidden' } if(document.querySelectorAll('[role=feed]')[0] != null){ document.querySelectorAll('[role=feed]')[0].style.visibility='hidden' } if(document.querySelectorAll('#ssrb_composer_start')[0] != null){ document.querySelectorAll('#ssrb_composer_start')[0].parentElement.style.visibility='hidden' } } if(document.URL.match('reddit.com') != null){ if(document.querySelectorAll('.ListingLayout-outerContainer')[0] != null){ document.querySelectorAll('.ListingLayout-outerContainer')[0].style.visibility='hidden' } } if(document.URL.match('twitter.com') != null){ setTimeout(function() { if(document.URL.match( '\/explore$|\/search$') != null){ window.location = 'https://twitter.com/messages' } if(document.URL.match('\/home$') != null && document.querySelectorAll('[role="region"]')[0] != null){ console.log('timeout') document.querySelectorAll('[role="region"]')[0].style.visibility='hidden' } for ( let x of document.querySelectorAll('[data-testid="cellInnerDiv"]').entries()){ if(x[0] > 7){ x[1].style.visibility='hidden' } } document.querySelectorAll('[data-testid="sidebarColumn"]')[0].style.visibility='hidden' }, 5000); } if(document.URL.match('youtube.com') != null){ if( document.querySelectorAll('#primary.ytd-two-column-browse-results-renderer')[0] != null){ document.querySelectorAll('#primary.ytd-two-column-browse-results-renderer')[0].style.visibility='hidden' } if(document.querySelectorAll('#contents.ytd-item-section-renderer')[1] != null){ document.querySelectorAll('#contents.ytd-item-section-renderer')[1].style.visibility='hidden' } if(document.querySelectorAll('.ytd-browse')[0] != null){ document.querySelectorAll('.ytd-browse')[0].style.visibility='hidden' } } }})();