-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve window.open-defuser scriptlet
The new syntax deprecate the old syntax, though the old syntax will still be supported until it's no longer used in mainstream filter lists. The new syntax is: example.com##+js(window.open-defuser, pattern, seconds) `pattern`: A pattern to match for the defusing to take place. Patterns which starts and ends with `/` will be interpreted as regular expressions. To NOT match a pattern, prefix with `!`. `seconds`: If not present, no window will be opened and the scriptlet will return `null`. If present and a valid integer value, the defuser will return a valid window object even though no popup window is opened. The returned window object will cease to be valid after the specified number of seconds.
- Loading branch information
Showing
1 changed file
with
52 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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