Bypass DF

Bypass para Diario Financiero, a través de DFU.owo.cl.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

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

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Bypass DF
// @description Bypass para Diario Financiero, a través de DFU.owo.cl.
// @match       *://www.df.cl/noticias/*

// @version 0.0.1.20210524225622
// @namespace https://greasyfork.org/users/775826
// ==/UserScript==

/*--- Crea el botón y lo añade al título de la noticia
*/
var zNode       = document.createElement ('div');
zNode.innerHTML = '<button id="myButton" type="button">'
                + 'Noticia sin paywall</button>'
                ;
zNode.setAttribute ('id', 'myContainer');
document.getElementById("titulo_articulo").appendChild (zNode);

//--- Activa el boton
document.getElementById ("myButton").addEventListener (
    "click", ButtonClickAction, true
);

//--- Concatena el link de DFU.owo.cl con la URL de la noticia actual 
function ButtonClickAction (zEvent) {
    /*--- 
    */
    window.open('https://dfu.owo.cl/#' + window.location.href);
}