Divisare

paywall go away

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name         Divisare
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  paywall go away
// @author       Martino Mensio
// @match        https://divisare.com/**
// @icon         https://www.google.com/s2/favicons?domain=divisare.com
// @grant        none
// ==/UserScript==

/*jshint esversion: 6 */

(function() {
    'use strict';
    let intervalId = null;
    const remove = () => {
        console.log('remove called');
        // re-enable scrolling
        const article = document.querySelector('body');
        article.style.overflow = 'auto';
        // remove paywall wrapper
        const elem = document.querySelector('div.blocker');
        if (elem) {
            elem.parentNode.removeChild(elem);
            console.log('done');
            clearInterval(intervalId);
        }
    };

    intervalId = setInterval(remove, 500);

})();