Skip to content
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

タイトルマッチを追加 #45

Closed
ncaq opened this issue Feb 25, 2023 · 5 comments · Fixed by #50
Closed

タイトルマッチを追加 #45

ncaq opened this issue Feb 25, 2023 · 5 comments · Fixed by #50
Labels

Comments

@ncaq
Copy link
Owner

ncaq commented Feb 25, 2023

過激なフィルタを追加 · Issue #44 · ncaq/uBlacklistRule

から分離。

現状の候補。

title/^無題$/
title/^待つ。$/
title/^Index of \//

uBlock Originに対応させる方法を調べるのが面倒くさいのと、
あまりモバイルでのブラウズには出てこない印象があるのでそちらは放置でも良いだろう。

@ncaq
Copy link
Owner Author

ncaq commented Aug 6, 2023

@ncaq
Copy link
Owner Author

ncaq commented Aug 6, 2023

とりあえず3つ以外に良い感じのは思いつかないなあ、ベタ書きでも良いかな。

@ncaq ncaq linked a pull request Aug 6, 2023 that will close this issue
ncaq added a commit that referenced this issue Aug 6, 2023
挟まれた改行は偶発的なものですが、
意図を区切るのにむしろ都合が良いと思ったので放置します。
ncaq added a commit that referenced this issue Aug 6, 2023
挟まれた改行は偶発的なものですが、
意図を区切るのにむしろ都合が良いと思ったので放置します。
@ncaq ncaq closed this as completed in #50 Aug 6, 2023
ncaq added a commit that referenced this issue Aug 6, 2023
 feat: タイトルマッチを追加 closed #45
@ncaq
Copy link
Owner Author

ncaq commented Aug 6, 2023

ftp系のかなり残ってしまっている。
タイトルマッチするより特別ルールを作って、サブドメインの一番上位なのがftpになっているものを除外したほうが良さそうに感じます。
ただルールがきれいな構造にならないな…

@ncaq
Copy link
Owner Author

ncaq commented Aug 6, 2023

ワイルドカード "*" は host の最初のみに適用できることに注意してください。

マッチパターン - Mozilla | MDN

じゃあURLで除外するの無理だな…

@ncaq
Copy link
Owner Author

ncaq commented Aug 6, 2023

いや別に正規表現を解禁すればいけるのか

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant