You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue is not present after disabling uBO in the browser.
I checked the documentation to understand that the issue I am reporting is not normal behavior.
I tried to reproduce the issue when...
uBO is the only extension.
uBO uses default lists and settings.
using a new, unmodified browser profile.
Description
While I love that the list syntax error checker has been available in regular resource viewing (Previously it was only in specific configurations of the logger), and that it has made my list-work easier, I've noticed one thing that is making it more tricky to find genuine syntax errors in some of my larger lists.
Using https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Dandelion%20Sprout's%20Anti-Malware%20List.txt as the example list for this report, the logger shows 65 errors as of 17th of November 2023, but all of them are packed inside !#if sections that indicate that those entries weren't intended for uBO in the first place. I fairly often use !#if !ext_ublock for AdGuard-only syntaxes (Mostly $network and $app), and !#if false for ABP workarounds.
As such, having the error counter not include entries that are in those 2 types of sections, would've been splendid stuff.
See that the error counter in the upper right is circa 65.
Go through the error counter's arrows and see that all or virtually all of those 65 are packed into "Not for use in uBO" !#if sections.
Expected behavior
That the error checker doesn't include entries in its count that are inside !#if !ext_ublock and !#if false sections.
Actual behavior
The error checker doesn't check for !#if or !#endif, making it slightly harder and more crowded to look for actually incorrect syntaxes and misspellings.
uBO version
1.53.0
Browser name and version
Chrome 119.0.6045.125 x64
Operating System and version
Windows 11 23H2 x64
The text was updated successfully, but these errors were encountered:
DandelionSprout
changed the title
Make the resource viewer's error checker discard entries that are inside "!#if !ext_ublock" and "!#if false" sections
Make the resource viewer's error checker not check entries that are inside "!#if !ext_ublock" and "!#if false" sections
Nov 18, 2023
It should skip checking all pre-parsing directives that return false in uBO, not just these specific two.
u-RraaLL
changed the title
Make the resource viewer's error checker not check entries that are inside "!#if !ext_ublock" and "!#if false" sections
Have linter skip checking pre-parsing directives returning false in uBO
Dec 23, 2023
Due PreHTML filtering have chances of popup blocking – fails:
remove-attr.js (the page is too small to analyze the difference between the pop-up after loaded the page (≈DOMContentLoaded) and the one with onclick="foo") and
Prerequisites
I tried to reproduce the issue when...
Description
While I love that the list syntax error checker has been available in regular resource viewing (Previously it was only in specific configurations of the logger), and that it has made my list-work easier, I've noticed one thing that is making it more tricky to find genuine syntax errors in some of my larger lists.
Using https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Dandelion%20Sprout's%20Anti-Malware%20List.txt as the example list for this report, the logger shows 65 errors as of 17th of November 2023, but all of them are packed inside
!#if
sections that indicate that those entries weren't intended for uBO in the first place. I fairly often use!#if !ext_ublock
for AdGuard-only syntaxes (Mostly$network
and$app
), and!#if false
for ABP workarounds.As such, having the error counter not include entries that are in those 2 types of sections, would've been splendid stuff.
A specific URL where the issue occurs.
chrome-extension://cjpalhdlnbpafiamejdnhcphjbkeiagm/asset-viewer.html?url=https%3A%2F%2Fraw.githubusercontent.com%2FDandelionSprout%2Fadfilt%2Fmaster%2FDandelion%2520Sprout%27s%2520Anti-Malware%2520List.txt
Steps to Reproduce
!#if
sections.Expected behavior
That the error checker doesn't include entries in its count that are inside
!#if !ext_ublock
and!#if false
sections.Actual behavior
The error checker doesn't check for
!#if
or!#endif
, making it slightly harder and more crowded to look for actually incorrect syntaxes and misspellings.uBO version
1.53.0
Browser name and version
Chrome 119.0.6045.125 x64
Operating System and version
Windows 11 23H2 x64
The text was updated successfully, but these errors were encountered: