signorecello / Bypass observador paywall

// ==UserScript==
// @name         Bypass observador paywall
// @namespace    http://tampermonkey.net/
// @version      0.2.1
// @description  try to take over the world!
// @author       You//
// @license      MIT
// @include      https://observador.pt/*
// @grant           GM_getValue
// @grant           GM_setValue
// @grant           GM_deleteValue
// @grant           GM_listValues
// @grant           GM_getResourceText
// @grant           GM_getResourceURL
// @grant           GM_addStyle
// @grant           GM_log
// @grant           GM_setClipboard
// @grant           GM_xmlhttpRequest
// @grant           unsafeWindow
// @grant           GM_openInTab
// @grant           GM_registerMenuCommand
// @run-at document-start
// ==/UserScript==

(function () {
  'use strict';

  function show() {
    document.getElementsByClassName("article-body-wrapper")[0].style.maxHeight = "none";
    let articlebody = document.getElementsByClassName("article-body")
    let list2 = document.getElementsByTagName("p")
    let list1 = document.getElementsByClassName("article-block")

    for (let i of articlebody) {
      i.style.setProperty("opacity", "1", "important")
      i.style.setProperty("visibility", "visible", "important")
    }
    for (let i of list1) {
      i.style.setProperty("opacity", "1", "important")
      i.style.setProperty("visibility", "visible", "important")
    }
    for (let i of list2) {
      i.style.setProperty("opacity", "1", "important")
      i.style.setProperty("visibility", "visible", "important")
    }

    const elements = document.querySelectorAll(".premium-paywall,.qc-cmp2-container,.piano-article-blocker,#piano-toaster")
    for (const el of elements) {
        el.remove()
    }
  }

  document.addEventListener("obsLoad", function () {
    setTimeout(function () {
      show()
    }, 2000)
  })

})();