mirror of
https://github.com/gorhill/uBlock.git
synced 2026-03-11 09:04:36 +00:00
Add "on" and "off" values to set-cookie (#3898)
* Add "on" and "off" values to set-cookie
Used on praxisplan.at.
0cd4612e18
* Update scriptlets.js
This commit is contained in:
parent
41d91ed080
commit
eb66129fbf
1 changed files with 1 additions and 0 deletions
|
|
@ -3388,6 +3388,7 @@ function setCookie(
|
|||
'ok',
|
||||
'accept', 'reject',
|
||||
'allow', 'deny',
|
||||
'on', 'off',
|
||||
];
|
||||
if ( validValues.includes(value.toLowerCase()) === false ) {
|
||||
if ( /^\d+$/.test(value) === false ) { return; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue