-
Notifications
You must be signed in to change notification settings - Fork 5
ci: revert to @match metadata block
#36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,8 +11,7 @@ | |
| // @version %%VERSION_VALUE%% | ||
| // @author PiQuark6046 and contributors | ||
| // | ||
| // @match https://*/* | ||
| // @match http://*/* | ||
| %%DOMAIN_INJECTION%% | ||
|
||
| // | ||
| // @description tinyShield allows AdGuard, uBlock Origin, Brave and ABP to resist against Ad-Shield quickly. | ||
| // @description:ko tinyShield는 AdGuard, uBlock Origin, Brave 와 ABP가 애드쉴드에 빠르게 저항할 수 있도록 합니다. | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The condition
Line === '%%DOMAIN_INJECTION%%'uses strict equality which will fail if the line contains any leading or trailing whitespace. Since the previous conditions use.includes(), this inconsistency could cause the placeholder to not be replaced if the banner.txt file has any whitespace around the placeholder. Consider using.includes('%%DOMAIN_INJECTION%%')for consistency or.trim() === '%%DOMAIN_INJECTION%%'to handle whitespace.