[Feature request] set-cookie
scriptlet
#2352
-
As far as I can see, there is a cookie-remover scriptlet, but there is no way to override a cookie (but correct me if I'm wrong). There are several pages that shows aggressive popups (which is block scrolling), and displaying of these popups usually depends on 1 cookie. For example, egeszsegkalauz.hu shows popup this way: Show JS$(window).ready(() => {
if (!getCookie('isLeavingPopUpReady') && document.querySelector('.leavingPopupLayer')) {
console.log("first");
const showPopup = () => {
setCookie('isLeavingPopUpReady', false, 3);
document.querySelector('body').style.overflow = 'hidden';
document.querySelector('.leavingPopupLayer').style.display = 'block';
document.querySelector('.leavingPopupLayer div').classList.add('fade-in');
};
// ...
}
}); It would be much easier to block these popups if cookie overwrite was available: egeszsegkalauz.hu##+js(set-cookie, isLeavingPopUpReady, 1) For security reasons, AdGuard has a set-cookie scriptlet, reference: https://github.com/AdguardTeam/Scriptlets/blob/master/wiki/about-scriptlets.md#set-cookie |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
duplicate of #1518 |
Beta Was this translation helpful? Give feedback.
@scripthunter7 Set cookie is added recently https://github.com/gorhill/uBlock/releases