Update popup (Google Mobile-Friendly tool)

merge-requests/11/head^2
magnolia1234 1 year ago
parent 89424f54f2
commit 12e1952d64

@ -11,6 +11,7 @@ Fix Vogue Business
Remove Repubblica.it (fix obsolete)
Remove Republic.ru (fix obsolete)
Update custom sites (default block cookies)
Update popup (Google Mobile-Friendly tool)
* v3.0.0.0 (2023-01-08)
Add Deutscher Fachverlag Mediengruppe (opt-in to custom sites)

@ -1905,30 +1905,20 @@ else if (matchDomain(it_gedi_domains)) {
if (paywall && amphtml) {
removeDOMElement(paywall);
window.location.href = amphtml.href;
} else {
let inline_videos = document.querySelectorAll('div.responsive-video');
for (let video of inline_videos) {
let placeholder = video.querySelector('div.snappedPlaceholder');
if (placeholder)
placeholder.removeAttribute('class');
let iframe = video.querySelector('iframe[data-src]:not([src])');
if (iframe) {
iframe.src = iframe.getAttribute('data-src');
let elem = document.createElement('a');
elem.href = iframe.getAttribute('data-src');
elem.innerText = '>>> external video-link';
elem.target = '_blank';
video.parentNode.appendChild(elem);
}
}
}
} else {
amp_unhide_access_hide('="showContent"', '', 'amp-ad, amp-embed');
amp_unhide_access_hide('="showContent"', '="NOT (showContent)"', 'amp-ad, amp-embed');
let logo = document.querySelector('div.logo-container > a');
if (logo) {
logo.innerText = "L'Espresso";
logo.style.color = 'white';
}
let placeholders = document.querySelectorAll('figure > amp-img[placeholder][src]');
for (let elem of placeholders) {
let img = document.createElement('img');
img.src = elem.getAttribute('src');
elem.parentNode.replaceChild(img, elem);
}
let inline_videos = document.querySelectorAll('div.video-container > iframe[src]');
for (let video of inline_videos) {
let elem = document.createElement('a');

@ -719,5 +719,5 @@
"*://*.wallkit.net/*",
"*://webcache.googleusercontent.com/*"
],
"version": "3.0.0.7"
"version": "3.0.0.8"
}

@ -21,7 +21,7 @@
<a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean" target="_blank">Help</a> |
<a href="https://twitter.com/Magnolia1234B" target="_blank">Twitter</a></div>
<div><a href="https://gitlab.com/magnolia1234/bypass-paywalls-firefox-clean/-/raw/master/changelog.txt" target="_blank">Changelog</a> |
<button id="clear_cookies" title="clear cookies (and local storage) for current site">clear cookies *</button> |
<button id="clear_cookies" title="clear cookies (and local storage) for current site">clear cookies<br>(& permission)</button> |
<button id="button-close" title="close popup">close</button></div>
<div><span id="version_new"></span></div>
<div><span>* for unlisted sites: first clear cookies (X = no fix) & block general paywall-scripts (in options) or use custom sites/reader view</span></div>

@ -63,10 +63,11 @@ function showArchiveLinks() {
currentWindow: true
}, function (tabs) {
if (tabs && tabs[0] && tabs[0].url && tabs[0].url.startsWith('http')) {
let url = tabs[0].url.split('?')[0];
let url = encodeURIComponent(tabs[0].url.split('?')[0]);
let archive_array = {
'Archive.today': 'https://archive.today?run=1&url=' + url,
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url
'Google webcache': 'https://webcache.googleusercontent.com/search?q=cache:' + url,
'Google Mobile-Friendly Tool\n(use online html-viewer - no fix)': 'https://search.google.com/test/mobile-friendly?url=' + url
};
let archive_id = document.querySelector('span#archive');
if (archive_id) {

@ -801,7 +801,7 @@ var defaultSites = {
block_regex: /cdn\.ampproject\.org\/v\d\/amp-access-.+\.js/,
useragent: "googlebot"
},
"Gruppo GEDI.it": {
"Gruppo GEDI.it (italian.tech, lescienze.it & espresso.repubblica.it)": {
domain: "###_it_gedi",
group: [
"italian.tech",

Loading…
Cancel
Save