Update custom sites (link to 1ft.io)

merge-requests/16/head
magnolia1234 7 months ago
parent a0d65c0355
commit 3edb36c0ac

@ -3,6 +3,7 @@ Changelog Bypass Paywalls Clean - Firefox
Updates (install signed xpi-file): https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/releases
Post-release
Update custom sites (link to 1ft.io)
* v3.4.0.0 (2023-10-29)
Add CartaCapital.com.br

@ -195,8 +195,8 @@ if (bg2csData.add_ext_link) {
case 'archive.is':
article.firstChild.before(archiveLink(url));
break;
case '12ft.io':
article.firstChild.before(ext_12ftLink(url));
case '1ft.io':
article.firstChild.before(nftLink(url));
break;
case 'google_webcache':
article.firstChild.before(googleWebcacheLink(url));
@ -5848,8 +5848,8 @@ function googleSearchToolLink(url, text_fail = 'BPC > Full article text (test ur
return externalLink(['search.google.com'], 'https://search.google.com/test/rich-results?url={url}', encodeURIComponent(url), text_fail);
}
function ext_12ftLink(url, text_fail = 'BPC > Try for full article text:\r\n') {
return externalLink(['12ft.io'], 'https://{domain}/{url}', url, text_fail);
function nftLink(url, text_fail = 'BPC > Full article text:\r\n') {
return externalLink(['1ft.io'], 'https://{domain}/{url}', url, text_fail);
}
function freediumLink(url, text_fail = 'BPC > Try for full article text:\r\n') {

@ -51,5 +51,5 @@
"webRequestBlocking",
"*://*/*"
],
"version": "3.4.0.0"
"version": "3.4.0.1"
}

@ -807,5 +807,5 @@
"*://*.wyleex.com/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.4.0.0"
"version": "3.4.0.1"
}

@ -9,7 +9,7 @@ var custom_switch = ((manifestData.optional_permissions && manifestData.optional
var useragent_options = ['', 'googlebot', 'bingbot', 'facebookbot'];
var referer_options = ['', 'facebook', 'google', 'twitter'];
var random_ip_options = ['', 'all', 'eu'];
var add_ext_link_type_options = ['', 'archive.is', '12ft.io', 'google_webcache', 'google_search_tool'];
var add_ext_link_type_options = ['', 'archive.is', '1ft.io', 'google_webcache', 'google_search_tool'];
function capitalize(str) {
return (typeof str === 'string') ? str.charAt(0).toUpperCase() + str.slice(1) : '';

@ -89,7 +89,7 @@ function showArchiveLinks() {
'Archive.today': 'https://archive.today?run=1&url=' + url_enc,
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url_enc,
'Clearthis.page': 'https://clearthis.page?u=' + url,
'12ft.io': 'https://12ft.io/' + url,
'1ft.io': 'https://1ft.io/' + url,
'Google Search Tool\n(use online html-viewer - no fix)': 'https://search.google.com/test/rich-results?url=' + url_enc
};
let archive_id = document.querySelector('span#archive');
@ -99,7 +99,7 @@ function showArchiveLinks() {
let elem_div = document.createElement('div');
let elem = document.createElement('a');
elem.innerText = key;
if (!(matchDomain(['12ft.io', 'clearthis.page', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
if (!(matchDomain(['1ft.io', 'clearthis.page', 'google.com', 'googleusercontent.com'], hostname) || hostname.match(/^archive\.\w{2}$/))) {
elem.href = archive_array[key];
elem.target = '_blank';
elem_div.appendChild(elem);

Loading…
Cancel
Save