This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//... | |
const bypassLocalStorageOverride = (page) => page.evaluateOnNewDocument(() => { | |
// preserve localStorage as separate var to keep it before any overrides | |
let __ls = localStorage | |
// restrict closure overrides to break global context reference to localStorage | |
Object.defineProperty(window, 'localStorage', { writable: false, configurable: false, value: __ls }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const concatRegex = (array: RegExp[]) => { | |
return new RegExp( | |
array.map(m => m.source).join(''), | |
array.map(m => m.flags).join('') | |
.split("").sort().join("").replace(/(.)(?=.*\1)/g, "") | |
) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[js-animate="fadeout"] { | |
transition: opacity .5s ease-out, height .5s; | |
-o-transition: opacity .5s ease-out, height .5s; | |
-moz-transition: opacity .5s ease-out, height .5s; | |
-webkit-transition: opacity .5s ease-out, height .5s; | |
opacity: 0; height: 0px !important; | |
} | |
[js-animate="fadein"] { | |
transition: opacity .5s ease-out, height .5s; |