Remove LA Times Paywall

Removes LA Times Paywall

2020-12-04 기준 버전입니다. 최신 버전을 확인하세요.

// ==UserScript==
// @name         Remove LA Times Paywall
// @version      0.1
// @description  Removes LA Times Paywall
// @author       oordeel
// @match        https://www.latimes.com/california/story/*
// @grant        none
// @runat        document-idle
// @namespace https://greasyfork.org/users/712334
// ==/UserScript==

window.addEventListener('load',function(){ removePaywall( );});
window.addEventListener('popstate',function(){ removePaywall( );});

function removePaywall(){
    var overlays = document.querySelectorAll('metering-modal');
    for (var i=0; i<overlays.length; i++){
        overlays[i].parentNode.removeChild(overlays[i]);
    }

    var allElements = document.querySelectorAll('*');
    for (i=0; i<allElements.length; i++){
        allElements[i].style.overflow = 'visible';
    }
}