您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Hides all articles that is hidden behind a paywall
当前为
// ==UserScript== // @name DT+ hider // @namespace Danielv123 // @version 1.0 // @description Hides all articles that is hidden behind a paywall // @author Danielv123 // @match https://www.dt.no/* // @grant none // ==/UserScript== (function() { 'use strict'; // remove articles on frontpage let paidArticles = document.querySelectorAll(".df-skin-paywall"); for(let i = 0; i < paidArticles.length;i++){ paidArticles[i].style.display = "none"; } // remove articles on article pages // find the + sign and trace article box from parentElements // timeout apparently required setTimeout(function(){ paidArticles = document.querySelectorAll(".am-premium-logo--imageoverlay"); for(let i = 0; i < paidArticles.length;i++){ paidArticles[i].parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement.style.display = "none"; } },1000); })();