forked from gorhill/uBlock
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request gorhill#12 from gorhill/master
Re-sync with uBo master
- Loading branch information
Showing
32 changed files
with
1,608 additions
and
940 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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
1.27.11.109 | ||
1.28.3.0 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
! Title: Static Filtering Parser Checklist | ||
! Homepage: https://github.com/gorhill/uBlock | ||
! Licence: https://github.com/gorhill/uBlock/blob/master/LICENSE.txt | ||
! | ||
! Description: | ||
! To verify that the static filtering parser is properly parsing valid and | ||
! invalid cases, by typically adding the list to uBO, disabling the list, | ||
! and viewing it in uBO's asset viewer. | ||
! | ||
! Feel free to add more entries to more throughly validate the static | ||
! filtering parser, submit the changes in your fork of uBO by opening an | ||
! issue at https://github.com/uBlockOrigin/uBlock-issues/issues | ||
|
||
|
||
|
||
|
||
!----------------------- | ||
! Parsing should succeed | ||
!----------------------- | ||
$script,redirect=noop.js | ||
*$empty | ||
*$xhr,empty | ||
*$redirect=empty | ||
*$xhr,redirect=empty | ||
|
||
*$csp=default-src 'none' | ||
|
||
*$all,~document | ||
*$all,~popup | ||
*$all,~inline-script | ||
*$all,~inline-font | ||
|
||
|
||
!-------------------- | ||
! Parsing should fail | ||
!-------------------- | ||
|
||
! can't redirect without type (except to `empty`) | ||
*$redirect=noop.js | ||
|
||
! can't redirect beacon, ping, websocket | ||
*$beacon,redirect-rule=empty | ||
*$ping,redirect-rule=empty | ||
*$websocket,redirect-rule=empty | ||
|
||
! can't mix csp with other types or redirect directives | ||
*$csp=default-src 'none',empty | ||
*$csp=default-src 'none',redirect=empty | ||
*$redirect=empty,csp=default-src 'none' | ||
*$csp=default-src 'none',xhr | ||
*$csp=default-src 'none',ghide | ||
*$csp=default-src 'none',csp=script-src 'none' | ||
|
||
! bad regex | ||
/(abc|def/$xhr | ||
|
||
! https://github.com/gorhill/uBlock/issues/2385#issuecomment-494078763 | ||
*$~document | ||
*$~popup | ||
*$~inline-script | ||
*$~inline-font |
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
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
Oops, something went wrong.