Warning: fopen(/www/sites/greasyfork.cloud/index/store/forever/d4e9e171ad33fa2f81aaeae04f61da2c.html): failed to open stream: No space left on device in /www/sites/greasyfork.cloud/index/scriptsControl.php on line 127
Contenido premium el mercurio - 源代码

Greasy Fork

Contenido premium el mercurio

Permite leer contenido pagado en el mercurio

当前为 2022-11-19 提交的版本,查看 最新版本

// ==UserScript==
// @name         Contenido premium el mercurio
// @namespace    http://tampermonkey.net/
// @version      1.0
// @license MIT
// @description  Permite leer contenido pagado en el mercurio
// @include      *digital.elmercurio.com/*
// @grant         GM_addStyle
// ==/UserScript==


    (function () {
        document.cookie = "socialReferrer=null";
        document.cookie = "T=null";


        if (getCookie("ActivePDF") == "") {
            window.location.reload();
            document.cookie = "ActivePDF=active";
        }
    }());


function getCookie(cname) {
    let name = cname + "=";
    let decodedCookie = decodeURIComponent(document.cookie);
    let ca = decodedCookie.split(';');
    for (let i = 0; i < ca.length; i++) {
        let c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
}