Fix-update Economist & FT (layout)
This commit is contained in:
parent
d9da63468b
commit
e913d93a09
@ -10,6 +10,7 @@ var ext_api = (typeof browser === 'object') ? browser : chrome;
|
|||||||
const restrictions = {
|
const restrictions = {
|
||||||
'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/,
|
'barrons.com': /.+barrons\.com\/(amp\/)?article(s)?\/.+/,
|
||||||
'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/,
|
'elcomercio.pe': /.+\/elcomercio.pe\/.+((\w)+(\-)+){3,}.+/,
|
||||||
|
'ft.com': /.+\.ft\.com\/content\/.+/,
|
||||||
'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/,
|
'gestion.pe': /.+\/gestion.pe\/.+((\w)+(\-)+){3,}.+/,
|
||||||
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
'quora.com': /^((?!quora\.com\/search\?q=).)*$/,
|
||||||
'seekingalpha.com': /.+seekingalpha\.com\/article\/.+/,
|
'seekingalpha.com': /.+seekingalpha\.com\/article\/.+/,
|
||||||
|
@ -275,8 +275,9 @@ else if (matchDomain("economist.com")) {
|
|||||||
const subscribe = document.querySelector('.subscription-proposition');
|
const subscribe = document.querySelector('.subscription-proposition');
|
||||||
const wrapper = document.getElementById('bottom-page-wrapper');
|
const wrapper = document.getElementById('bottom-page-wrapper');
|
||||||
removeDOMElement(subscribe, wrapper);
|
removeDOMElement(subscribe, wrapper);
|
||||||
const adverts = document.querySelectorAll('.advert');
|
const adverts = document.querySelectorAll('div.advert');
|
||||||
removeDOMElement(...adverts);
|
for (let advert of adverts)
|
||||||
|
advert.setAttribute('style', 'display:none');
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
const paywall = document.querySelector('.layout-article-regwall'); ;
|
const paywall = document.querySelector('.layout-article-regwall'); ;
|
||||||
if (paywall) {
|
if (paywall) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user