Update popup (archive-links)
This commit is contained in:
parent
0725a06f5e
commit
93595ebe5f
@ -799,6 +799,7 @@ Remember to check the [previous requests](https://gitlab.com/magnolia1234/bypass
|
||||
3. Disable Javascript on the site (by browser, uBlock Origin or other extension).
|
||||
4. Add the domain as custom site for more bypass options.
|
||||
5. Open page in reader view (by browser or extension).
|
||||
6. Try one of the archive sites.
|
||||
|
||||
### Add custom site
|
||||
Add your own custom site (also for testing).
|
||||
|
@ -6,6 +6,7 @@ Add The Japan Times
|
||||
Fix ilTirreno.it & LaNuovaSardegna.it
|
||||
Fix Koelner Stadt-Anzeiger & Koelnische Rundschau
|
||||
Fix NYTimes (Cooking)
|
||||
Update popup (archive-links)
|
||||
|
||||
* v2.7.5.0 (2022-07-10)
|
||||
Add Architectural Digest (Conde Nast)
|
||||
|
@ -43,5 +43,5 @@
|
||||
"webRequestBlocking",
|
||||
"<all_urls>"
|
||||
],
|
||||
"version": "2.7.5.2"
|
||||
"version": "2.7.5.3"
|
||||
}
|
||||
|
@ -681,5 +681,5 @@
|
||||
"*://*.wsj.net/*",
|
||||
"*://webcache.googleusercontent.com/*"
|
||||
],
|
||||
"version": "2.7.5.2"
|
||||
"version": "2.7.5.3"
|
||||
}
|
||||
|
@ -25,6 +25,7 @@
|
||||
<button id="clear_cookies" title="clear cookies (and local storage) for current site">clear cookies</button> |
|
||||
<button id="button-close" title="close popup">close</button></div>
|
||||
<div><span id="version_new"></span></div>
|
||||
<div><span id="archive"></span></div>
|
||||
<script id="popup" src="version.js"></script>
|
||||
<script src="popup.js"></script>
|
||||
</body>
|
||||
|
@ -65,6 +65,36 @@ document.getElementById("clear_cookies").addEventListener('click', function () {
|
||||
});
|
||||
});
|
||||
|
||||
function showArchiveLinks() {
|
||||
ext_api.tabs.query({
|
||||
active: true,
|
||||
currentWindow: true
|
||||
}, function (tabs) {
|
||||
if (tabs && tabs[0] && tabs[0].url && tabs[0].url.startsWith('http')) {
|
||||
let url = 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
|
||||
};
|
||||
let archive_id = document.querySelector('span#archive');
|
||||
if (archive_id) {
|
||||
archive_id.appendChild(document.createTextNode('Open tab in:'));
|
||||
for (let key in archive_array) {
|
||||
let elem_div = document.createElement('div');
|
||||
let elem = document.createElement('a');
|
||||
elem.innerText = key;
|
||||
elem.href = archive_array[key];
|
||||
elem.style = 'color:black;';
|
||||
elem.target = '_blank';
|
||||
elem_div.appendChild(elem);
|
||||
archive_id.appendChild(elem_div);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
showArchiveLinks();
|
||||
|
||||
function closeButton() {
|
||||
window.close();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user