bypass-paywalls-firefox-clean/popup.js
magnolia1234 9c721e4ef4 Option to clear cookies & local storage (of site)
Plus fix-update MIT Sloan Management Review (modal)
2020-10-12 17:31:51 +02:00

10 lines
355 B
JavaScript

var ext_api = chrome || browser;
document.getElementById("site_switch").addEventListener('click', function() {
ext_api.extension.getBackgroundPage().site_switch();
window.close();
});
document.getElementById("clear_cookies").addEventListener('click', function() {
ext_api.extension.getBackgroundPage().clear_cookies();
window.close();
});