This commit is contained in:
magnolia1234 2020-06-20 09:43:02 +02:00
parent 504b7140bf
commit e3ef95e7ed
5 changed files with 19 additions and 3 deletions

View File

@ -17,11 +17,11 @@ Here you can also find a limited permissions version (custom sites will not be w
Install add-on by downloading xpi-file. Install add-on by downloading xpi-file.
### List of supported websites ### List of supported websites
#### United States of America
##### World news ##### World news
[First Things](https://www.firstthings.com) - [First Things](https://www.firstthings.com) -
[Foreign Policy](https://www.foreignpolicy.com) - [Foreign Policy](https://www.foreignpolicy.com) -
[Harper's Magazine](https://harpers.org) - [Harper's Magazine](https://harpers.org) -
[Inkl](https://www.inkl.com) -
[National Review](https://www.nationalreview.com) - [National Review](https://www.nationalreview.com) -
[The American Interest](https://www.the-american-interest.com) - [The American Interest](https://www.the-american-interest.com) -
[The Atlantic](https://www.theatlantic.com) - [The Atlantic](https://www.theatlantic.com) -
@ -75,7 +75,7 @@ Install add-on by downloading xpi-file.
[SofRep](https://sofrep.com) - [SofRep](https://sofrep.com) -
[The Daily Beast](https://www.thedailybeast.com)* [The Daily Beast](https://www.thedailybeast.com)*
##### Local US news ##### Local USA news
[Baltimore Sun](https://www.baltimoresun.com) - [Baltimore Sun](https://www.baltimoresun.com) -
[Crain's Chicago Business](https://www.chicagobusiness.com) - [Crain's Chicago Business](https://www.chicagobusiness.com) -
[Chicago Tribune](https://www.chicagotribune.com) - [Chicago Tribune](https://www.chicagotribune.com) -

View File

@ -42,6 +42,7 @@ var allow_cookies = [
'heraldsun.com.au', 'heraldsun.com.au',
'humo.be', 'humo.be',
'independent.ie', 'independent.ie',
'inkl.com',
'intelligentinvestor.com.au', 'intelligentinvestor.com.au',
'kleinezeitung.at', 'kleinezeitung.at',
'lc.nl', 'lc.nl',
@ -413,7 +414,8 @@ ext_api.webRequest.onBeforeSendHeaders.addListener(function(details) {
return { cancel: true }; return { cancel: true };
} }
if (!isSiteEnabled(details)) { let inkl_site = (matchUrlDomain('cdn.jsdelivr.net', details.url) && matchUrlDomain('inkl.com', header_referer) && isSiteEnabled({url: header_referer}));
if (!isSiteEnabled(details) && !(inkl_site)) {
return; return;
} }

View File

@ -688,6 +688,17 @@ else if (matchDomain('ftm.nl')) {
removeDOMElement(banner_pp); removeDOMElement(banner_pp);
} }
else if (matchDomain('inkl.com')) {
document.addEventListener('DOMContentLoaded', () => {
let article_container = document.querySelector('div.article-content-container');
if (article_container)
article_container.setAttribute("style", "overflow: visible;");
let gradient_container = document.querySelector('div.gradient-container');
if (gradient_container)
gradient_container.setAttribute("style", "height:auto;");
});
}
// General Functions // General Functions
function removeDOMElement(...elements) { function removeDOMElement(...elements) {
for (let element of elements) { for (let element of elements) {

View File

@ -114,6 +114,7 @@
"*://*.ilmessaggero.it/*", "*://*.ilmessaggero.it/*",
"*://*.inc.com/*", "*://*.inc.com/*",
"*://*.independent.ie/*", "*://*.independent.ie/*",
"*://*.inkl.com/*",
"*://*.inquirer.com/*", "*://*.inquirer.com/*",
"*://*.intelligentinvestor.com.au/*", "*://*.intelligentinvestor.com.au/*",
"*://*.irishtimes.com/*", "*://*.irishtimes.com/*",
@ -243,6 +244,7 @@
"*://*.evolok.net/*", "*://*.evolok.net/*",
"*://*.flip-pay.com/*", "*://*.flip-pay.com/*",
"*://*.htmedia.in/*", "*://*.htmedia.in/*",
"*://*.jsdelivr.net/*",
"*://*.lightboxcdn.com/*", "*://*.lightboxcdn.com/*",
"*://*.lp4.io/*", "*://*.lp4.io/*",
"*://*.nyt.com/*", "*://*.nyt.com/*",

View File

@ -65,6 +65,7 @@ var defaultSites =
"Il Manifesto": "ilmanifesto.it", "Il Manifesto": "ilmanifesto.it",
"Il Messaggero": "ilmessaggero.it", "Il Messaggero": "ilmessaggero.it",
"Illawarra Mercury": "illawarramercury.com.au", "Illawarra Mercury": "illawarramercury.com.au",
"Inkl": "inkl.com",
"Intelligent Investor": "intelligentinvestor.com.au", "Intelligent Investor": "intelligentinvestor.com.au",
"Irish Independent": "independent.ie", "Irish Independent": "independent.ie",
"Kleine Zeitung": "kleinezeitung.at", "Kleine Zeitung": "kleinezeitung.at",