Add Southern Weekly (China)

This commit is contained in:
magnolia1234 2021-07-19 17:54:59 +02:00
parent ab38151989
commit 154d1b9c22
6 changed files with 30 additions and 1 deletions

View File

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

View File

@ -89,6 +89,7 @@ var allow_cookies_default = [
'ilgiorno.it', 'ilgiorno.it',
'ilrestodelcarlino.it', 'ilrestodelcarlino.it',
'independent.ie', 'independent.ie',
'infzm.com',
'intelligentinvestor.com.au', 'intelligentinvestor.com.au',
'jpost.com', 'jpost.com',
'knack.be', 'knack.be',
@ -910,6 +911,18 @@ ext_api.webRequest.onBeforeRequest.addListener(function (details) {
["blocking"] ["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) // fix nytimes x-frame-options (hidden iframe content)
ext_api.webRequest.onHeadersReceived.addListener(function (details) { ext_api.webRequest.onHeadersReceived.addListener(function (details) {
if (!isSiteEnabled(details)) { if (!isSiteEnabled(details)) {

View File

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

View File

@ -1961,6 +1961,18 @@ else if (matchDomain(['houstonchronicle.com', 'sfchronicle.com'])) {
removeDOMElement(wrapper); 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')) { else if (matchDomain('inkl.com')) {
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
let menu_btn = document.querySelector('div.left-buttons-container button.menu-btn'); let menu_btn = document.querySelector('div.left-buttons-container button.menu-btn');

View File

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

View File

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