Add Southern Weekly (China)

master
magnolia1234 2021-07-19 17:53:49 +02:00
parent 700e4bcd57
commit 01f0ed8a7f
7 changed files with 31 additions and 2 deletions

View File

@ -564,6 +564,7 @@ Grupo Vocento (ABC) regional sites like
[Nikkei Asian Review](https://asia.nikkei.com) -
[NK News](https://www.nknews.org)* -
[South China Morning Post](https://www.scmp.com) -
[Southern Weekly](https://www.infzm.com) -
[Tech in Asia](https://www.techinasia.com) -
[The Diplomat](https://www.thediplomat.com) -
[The Japan Times](https://www.japantimes.co.jp)

View File

@ -89,6 +89,7 @@ var allow_cookies_default = [
'ilgiorno.it',
'ilrestodelcarlino.it',
'independent.ie',
'infzm.com',
'intelligentinvestor.com.au',
'jpost.com',
'knack.be',
@ -910,6 +911,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
["blocking"]
);
// infzm.com redirect to wap (mobile)
ext_api.webRequest.onBeforeRequest.addListener(function (details) {
if (!isSiteEnabled(details)) {
return;
}
var updatedUrl = details.url.replace('.com/contents/', '.com/wap/#/content/');
return { redirectUrl: updatedUrl };
},
{urls:["*://www.infzm.com/contents/*"], types:["main_frame"]},
["blocking"]
);
// fix nytimes x-frame-options (hidden iframe content)
ext_api.webRequest.onHeadersReceived.addListener(function (details) {
if (!isSiteEnabled(details)) {

View File

@ -2,6 +2,7 @@
Changelog Bypass Paywalls Clean - Chrome
Post-release
Add Southern Weekly (China)
Fix The Daily Telegraph (au)
* v2.2.9.0 (2021-07-11)

View File

@ -1961,6 +1961,18 @@ else if (matchDomain(['houstonchronicle.com', 'sfchronicle.com'])) {
removeDOMElement(wrapper);
}
else if (matchDomain('infzm.com')) {
let url = window.location.href;
if (url.includes('/wap/#/')) {
let container = document.querySelector('section.container');
if (container)
container.classList.remove('container');
let overlay = document.querySelector('div.article-content[style]');
if (overlay)
overlay.removeAttribute('style');
}
}
else if (matchDomain('inkl.com')) {
document.addEventListener('DOMContentLoaded', () => {
let menu_btn = document.querySelector('div.left-buttons-container button.menu-btn');

View File

@ -38,5 +38,5 @@
"webRequestBlocking",
"<all_urls>"
],
"version": "2.2.9.1"
"version": "2.2.9.2"
}

View File

@ -219,6 +219,7 @@
"*://*.ilsecoloxix.it/*",
"*://*.inc.com/*",
"*://*.independent.ie/*",
"*://*.infzm.com/*",
"*://*.inkl.com/*",
"*://*.inquirer.com/*",
"*://*.intelligentinvestor.com.au/*",
@ -522,5 +523,5 @@
"*://*.wallkit.net/*",
"*://*.wsj.net/*"
],
"version": "2.2.9.1"
"version": "2.2.9.2"
}

View File

@ -225,6 +225,7 @@ var defaultSites =
"Slate": "slate.com",
"SOFREP": "sofrep.com",
"South China Morning Post": "scmp.com",
"Southern Weekly": "infzm.com",
"Sports Illustrated": "si.com",
"Star Tribune": "startribune.com",
"Statista": "statista.com",