您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Uncheck booking.com search on Trainline, and hide the ad
// ==UserScript== // @match https://www.thetrainline.com/* // @name Hide Booking.com ad on Trainline // @description Uncheck booking.com search on Trainline, and hide the ad // @name:fr Trainline : cacher la publicité pour Booking.com // @description:fr Décoche la recherche booking.com sur Trainline et cache la publicité // @namespace bohwaz // @version 1.0 // @author bohwaz // @license AGPL-3.0-or-later // ==/UserScript== (new MutationObserver(check)).observe(document, {childList: true, subtree: true}); function check(changes, observer) { let c; if ((c = document.getElementById('bookingPromo')) && c.checked) { c.click(); c.parentNode.parentNode.parentNode.style.visibility = 'hidden'; } }