DN Paywall fix

Remove ad-bloats from DN

// ==UserScript==
// @name        DN Paywall fix
// @namespace   [email protected]
// @include     *.dn.se*
// @description  Remove ad-bloats from DN
// @version     0.0.1
// @grant       none
// ==/UserScript==

$(window).load(() => {
    $("#serviceplusPaywallpaywall-container").remove();
    $(".article__premium-content").css("display","block");
    $(".ad.ad--panorama").each((k, v) => {v.remove();});
});

setTimeout(() => {
    $(".article__body--mask .article__lead").css("position", "inherit");
    console.log("max-height", $(".article__body--mask .article__lead").css("max-height", "2100px"));

    // hide paywall overlay
    const pwOverlay = $("#pwOverlay");
    console.log("pwOverlay", pwOverlay.length);
    pwOverlay.css("display", "none");

}, 2000);
 GM_addStyle(".article__lead::after {" +
            "box-shadow: 0 0 !important;" +
            "max-height: 2000px;"+
            "}");

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址