Add Süddeutsche Zeitung (amp for plus)

This commit is contained in:
magnolia1234 2020-07-22 19:38:49 +02:00
parent af350e41a9
commit 0fcc51486d
4 changed files with 13 additions and 1 deletions

View file

@ -190,7 +190,8 @@ Install add-on by downloading xpi-file.
[Valeurs Actuelles](https://www.valeursactuelles.com) [Valeurs Actuelles](https://www.valeursactuelles.com)
##### Germany/Austria ##### Germany/Austria
[Frankfurter Allgemeine Zeitung](https://www.faz.net) - [Frankfurter Allgemeine Zeitung](https://www.faz.net) -
[Handelsblatt](https://www.handelsblatt.com) [Handelsblatt](https://www.handelsblatt.com) -
[Süddeutsche Zeitung](https://www.sueddeutsche.de)
##### Italy ##### Italy
[Corriere Della Sera](https://www.corriere.it) - [Corriere Della Sera](https://www.corriere.it) -
[Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) - [Il Fatto Quotidiano](https://www.ilfattoquotidiano.it) -

View file

@ -863,6 +863,15 @@ else if (matchDomain("irishtimes.com")) {
}); });
} }
else if (matchDomain("sueddeutsche.de")) {
document.addEventListener('DOMContentLoaded', () => {
let reduced_par = document.querySelector('div.sz-article-body__paragraph--reduced');
let url = window.location.href;
if (url.includes('reduced=true') || reduced_par)
window.location.href = url.split('?')[0].replace('www.', 'amphtml.');
});
}
// General Functions // General Functions
function removeDOMElement(...elements) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {

View file

@ -201,6 +201,7 @@
"*://*.spectator.com.au/*", "*://*.spectator.com.au/*",
"*://*.standard.net.au/*", "*://*.standard.net.au/*",
"*://*.statista.com/*", "*://*.statista.com/*",
"*://*.sueddeutsche.de/*",
"*://*.sun-sentinel.com/*", "*://*.sun-sentinel.com/*",
"*://*.switzersuperreport.com.au/*", "*://*.switzersuperreport.com.au/*",
"*://*.techinasia.com/*", "*://*.techinasia.com/*",

View file

@ -129,6 +129,7 @@ var defaultSites =
"Slader": "slader.com", "Slader": "slader.com",
"SOFREP": "sofrep.com", "SOFREP": "sofrep.com",
"Statista": "statista.com", "Statista": "statista.com",
"Süddeutsche Zeitung": "sueddeutsche.de",
"SunSentinel": "sun-sentinel.com", "SunSentinel": "sun-sentinel.com",
"Switzer Report": "switzersuperreport.com.au", "Switzer Report": "switzersuperreport.com.au",
"Tech in Asia": "techinasia.com", "Tech in Asia": "techinasia.com",