您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A script that removes paywall from Kieler Nachrichten articles (KN+) by copying the article text from an script element in the source code into the body.
当前为
// ==UserScript== // @name KN Paywall Killer // @description A script that removes paywall from Kieler Nachrichten articles (KN+) by copying the article text from an script element in the source code into the body. // @description:de Ein Skript, dass die Paywall in Artikeln der Kieler Nachrichten (KN+) entfernt, indem es den Artikeltext aus einem Skript im Quelltext in den Body kopiert // @include https://www.kn-online.de/* // @namespace Discostu36/KN-Paywall-Killer // @run-at document-idle // @version 1.0 // @license MIT // ==/UserScript== var paywall = document.querySelector(".paywall"); var contentScript = document.querySelectorAll("script[type='application/ld+json']")[2]; var contentObject = JSON.parse(contentScript.text); var articleBody = contentObject.articleBody; var descriptionP = document.querySelector(".ArticleHeadstyled__ArticleTeaserContainer-sc-1xd2qac-1"); var bodySpan = document.querySelector(".Textstyled__InlineText-sc-14jlruk-1"); var contentLoader = document.querySelector("#article > svg") var contentLoaderGradient = document.querySelector(".ArticleContentLoaderstyled__Gradient-sc-1npmba7-0") if (paywall!=null) { paywall.remove(); contentLoader.remove() contentLoaderGradient.remove() descriptionP.classList.remove("jgJYOM"); bodySpan.innerHTML = articleBody; bodySpan.parentElement.nextSibling.remove(); }