; Homepage: https://github.com/AdguardTeam/AdGuardFilters ; License: https://github.com/AdguardTeam/AdguardFilters/blob/master/LICENSE ; ;-------------------------------------------------------------------------------; ;------------------ General JS API ---------------------------------------------; ;-------------------------------------------------------------------------------; ; JS API START ; ; AG_removeCookie ; Examples: AG_removeCookie('/REGEX/') or AG_removeCookie('part of the cookie name') ; ; ; AG_defineProperty ; See https://github.com/AdguardTeam/deep-override ; ; ; AG_abortOnPropertyWrite(property, debug) ; Aborts execution of a script when it attempts to write the specified property. ; Based on AG_defineProperty (https://github.com/AdguardTeam/deep-override) ; ; Examples: ; AG_abortOnPropertyWrite('String.fromCharCode'); ; ; @param property property or properties chain ; @param debug optional, if true - we will print warning when script is aborted. ; ; ; AG_abortOnPropertyRead(property, debug) ; Aborts execution of a script when it attempts to read the specified property. ; Based on AG_defineProperty (https://github.com/AdguardTeam/deep-override) ; ; Examples: ; AG_abortOnPropertyRead('String.fromCharCode'); ; ; @param property property or properties chain ; @param debug optional, if true - we will print warning when script is aborted. ; ; ; AG_abortInlineScript(regex, property, debug) ; Aborts execution of an inline script when it attempts to access the specified property ; AND content of the