Add Folha de S. Paulo

master
magnolia1234 2020-01-21 19:46:27 +01:00 committed by GitHub
parent 91493155e2
commit 75308e7a7e
4 changed files with 19 additions and 5 deletions

View File

@ -11,7 +11,7 @@
* [License](#license)
### Installation instructions
#### Chrome (Windows/MacOS/Linux)
#### Chrome (Windows/MacOS/Linux)/Microsoft Edge (Chromium)
1. Download this repo as a [ZIP file from GitHub](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/archive/master.zip).
2. Unzip the file and you should have a folder named `bypass-paywalls-chrome-clean-master`.
3. Move the folder to a permanent location on your computer (do not delete the folder after installation).
@ -27,7 +27,7 @@
5. Tap `Load unpacked extension`.
6. Find your extension folder and pick `manifest.json`.
#### Chromium browsers (Microsoft Edge/Opera/Vivaldi/Brave)
#### Chromium browsers (Opera/Vivaldi/Yandex/Brave)
1. Download the extension as a .crx file from the [releases page](https://github.com/magnolia1234/bypass-paywalls-chrome-clean/releases).
2. In your browser go to the extensions page.
3. Enable Developer Mode.
@ -191,13 +191,19 @@ Visit the [Firefox repository](https://github.com/magnolia1234/bypass-paywalls-f
[The Marker](https://www.themarker.com)
#### Latin America
#### Argentina
[La Nación](https://www.lanacion.com.ar)
#### Brazil
[Exame](https://exame.abril.com.br)
[La Nación](https://www.lanacion.com.ar) -
[La Tercera](https://www.latercera.com) -
[Mexico News Daily](https://mexiconewsdaily.com)
[Folha de S. Paulo](https://www.folha.uol.com.br) -
[O Estado de S. Paulo](https://estadao.com.br)
[O Globo](https://oglobo.globo.com)
[Valor Econômico](https://valor.globo.com)*
#### Chile
[La Tercera](https://www.latercera.com)
#### Mexico
[Mexico News Daily](https://mexiconewsdaily.com)
#### Encyclopedia/Book library/Knowledge base
[Encyclopedia Britannica](https://www.britannica.com) -

View File

@ -16,6 +16,7 @@ const restrictions = {
// allow_cookies are completed with domains in sites(_custom).json (default allow/remove_cookies)
var allow_cookies = [
'barrons.com',
'folha.uol.com.br',
'haaretz.co.il',
'haaretz.com',
'handelsblatt.com',
@ -93,6 +94,7 @@ var blockedRegexes = {
'economist.com': /(.+\.tinypass\.com\/.+|economist\.com\/_next\/static\/runtime\/main.+\.js)/,
'elpais.com': /.+\.epimg\.net\/js\/.+\/noticia\.min\.js/,
'exame.abril.com.br': /.+\.tinypass\.com\/.+/,
'folha.uol.com.br': /.+\.folha\.uol\.com\.br\/paywall\/js\/.+\/publicidade\.ads\.js/,
'globo.com': /.+\.tinypass\.com\/.+/,
'foreignpolicy.com': /.+\.tinypass\.com\/.+/,
'fortune.com': /.+\.tinypass\.com\/.+/,

View File

@ -385,6 +385,11 @@ if (window.location.href.indexOf("estadao.com.br") !== -1) {
removeDOMElement(paywall);
}
if (window.location.href.indexOf("folha.uol.com.br") !== -1) {
const signup = document.querySelector('.c-top-signup');
removeDOMElement(signup);
}
// General Functions
function removeDOMElement(...elements) {
for (let element of elements) {

View File

@ -20,6 +20,7 @@
"Financial News": "fnlondon.com",
"Financial Times": "ft.com",
"First Things": "firstthings.com",
"Folha de S. Paulo": "folha.uol.com.br",
"Foreign Policy": "foreignpolicy.com",
"Fortune": "fortune.com",
"Glassdoor": "glassdoor.com",