Upgrade to the latest version.

This commit is contained in:
2026-01-04 21:30:53 +01:00
parent e4d67b962a
commit 733097a002
33 changed files with 6239 additions and 9055 deletions

View File

@@ -2,40 +2,23 @@
var ext_api = (typeof browser === 'object') ? browser : chrome;
var hostname = window.location.hostname;
var de_madsack_domains = ['haz.de', 'kn-online.de', 'ln-online.de', 'lvz.de', 'maz-online.de', 'neuepresse.de', 'ostsee-zeitung.de', 'rnd.de'];
if (hostname.match(/\.de$/)) {
if (matchDomain(de_madsack_domains) || document.querySelector('head > link[href*=".rndtech.de/"]')) {
function madsack_main() {
for (let n = 0; n < 10; n++) {
if (matchDomain('automobilwoche.de')) {
function automobilwoche_main() {
for (let n = 0; n < 25; n++) {
window.setTimeout(function () {
if (window.Fusion) {
window.Fusion.globalContent.isPaid = false;
window.Fusion.globalContent._id = 0;
window.Fusion.globalContent.content_restrictions = {};
}
}, n * 50);
}
}
insert_script(madsack_main);
}
}
if (matchDomain('dagsavisen.no')) {
function dagsavisen_main() {
for (let n = 0; n < 10; n++) {
window.setTimeout(function () {
if (window.Fusion) {
window.Fusion.globalContent.content_restrictions.content_code = 0;
}
}, n * 50);
}
}
insert_script(dagsavisen_main);
insert_script(automobilwoche_main);
}
else if (matchDomain(['journaldemontreal.com', 'journaldequebec.com'])) {
for (let n = 0; n < 10; n++) {
for (let n = 0; n < 50; n++) {
window.setTimeout(function () {
let article = document.querySelector('div.article-main-txt.composer-content');
if (article)
@@ -46,7 +29,7 @@ else if (matchDomain(['journaldemontreal.com', 'journaldequebec.com'])) {
else if (matchDomain('nzherald.co.nz')) {
function nzherald_main() {
for (let n = 0; n < 10; n++) {
for (let n = 0; n < 25; n++) {
window.setTimeout(function () {
if (window.Fusion) {
window.Fusion.globalContent.isPremium = false;
@@ -57,14 +40,10 @@ else if (matchDomain('nzherald.co.nz')) {
insert_script(nzherald_main);
}
function matchDomain(domains, hostname) {
var matched_domain = false;
if (!hostname)
hostname = window.location.hostname;
function matchDomain(domains, hostname = window.location.hostname) {
if (typeof domains === 'string')
domains = [domains];
domains.some(domain => (hostname === domain || hostname.endsWith('.' + domain)) && (matched_domain = domain));
return matched_domain;
return domains.find(domain => hostname === domain || hostname.endsWith('.' + domain)) || false;
}
function removeDOMElement(...elements) {