您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
It moves ads to the sidebar, avoiding unwanted clicks on them. In mobile, they dissapear out of bounds.
当前为
// ==UserScript== // @name StartPage - Move ads to the sidebar bottom // @namespace https://startpage.com/ // @match *://*startpage.com/* // @icon https://www.startpage.com/sp/cdn/favicons/favicon-32x32-gradient.png // @version 20240527 // @author Lukas ThyWalls // @license CC0 // @description It moves ads to the sidebar, avoiding unwanted clicks on them. In mobile, they dissapear out of bounds. // @run-at document-end // ==/UserScript== // Run Check Function at every DOM change. (new MutationObserver(check)).observe(document, {childList: true, subtree: true}); function check(changes, observer) { // If all Sidebar Block AND both Ads Block (top and bottom) are found/loaded... if(document.querySelector('#sidebar') && document.querySelector('#gcsa-top > iframe') && document.querySelector('#gcsa-bottom > iframe')) { // ... then stop checking ... observer.disconnect(); // ... and move both Ads Blocks to the bottom of the sidebar. document.querySelector("#sidebar").appendChild(document.querySelector("#gcsa-top")); document.querySelector("#sidebar").appendChild(document.querySelector("#gcsa-bottom")); } }