Diarios chilenos bypass paywall

Permite leer contenido pagado en los principales periodicos chilenos

2020-02-28 या दिनांकाला. सर्वात नवीन आवृत्ती पाहा.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        Diarios chilenos bypass paywall
// @namespace    http://tampermonkey.net/
// @version      1
// @description  Permite leer contenido pagado en los principales periodicos chilenos
// @name          malu
// @include      *digital.elmercurio.com/*
// @include       *digital.lasegunda.com/*
// @include       *www.estrella*.cl/*
// @include      *www.mercurio*.cl/*
// @include      *www.diario*.cl/*
// @require       https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
// @grant         GM_addStyle
// ==/UserScript==
if(document.URL.match('digital.elmercurio.com/') || document.URL.match('digital.lasegunda.com/')){
    (function() {
        var viewer = document.getElementById('viewer_webp').children;
        viewer[0].classList.add("fullpage");
        viewer[1].classList.add("hide","html");
        viewer[2].classList.add("lateralRightBar");
        viewer[2].style.display="none";
        var SearchButton =document.getElementsByClassName("cont_bt_sections bt_buscar_txt bus_right")[0];
        SearchButton.style.display="none";
        var targetNode = document.getElementById("modal_limit_articulos");
        const config = { attributes: true, childList: true, subtree: true,attributeOldValue: true };
        const callback = function(mutationsList, observer) {
            for(let mutation of mutationsList) {
                if (mutation.type === 'attributes') {
                    document.getElementById("modal_limit_articulos").style.display = "none";
                    $("body").css({"overflow":"visible","padding-right":"0px"});
                }
            }
        };
        const observer = new MutationObserver(callback);
        observer.observe(targetNode, config);
}());}

else if (document.URL.match('estrella') ||document.URL.match('diario') ||document.URL.match('mercurio')){
    (function() {
        var expand = document.getElementsByClassName("col-7 grm-page")[0];
        expand.classList.add("expanded");
        document.getElementById('app').id = "nonap";
        document.getElementById('content').id = "noncontet";
        document.getElementsByClassName("modal-wrapper")[0].style.display ="none";
        GM_addStyle(".modal-open { overflow: visible !important } ");
        var targetNode = document.body;
        const config = { attributes: true, childList: true, subtree: true,attributeOldValue: true };
        const callback = function(mutationsList, observer) {
            for(let mutation of mutationsList) {
                if (mutation.type === 'attributes') {
                    if(mutation.oldValue === 'home blog is-diario is-detalle modal-open' ){
                        document.body.className = "home blog is-diario is-detalle";
                    }
                }
            }
        };
       // Create an observer instance linked to the callback function
         const observer = new MutationObserver(callback);
       // Start observing the target node for configured mutations
        observer.observe(targetNode, config);
})();}