DN Paywall fix

Remove ad-bloats from DN

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==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;"+
            "}");