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

Use Regular Expressions in text filters #29

Open
zbluebugz opened this issue Dec 10, 2022 · 19 comments
Open

Use Regular Expressions in text filters #29

zbluebugz opened this issue Dec 10, 2022 · 19 comments
Assignees
Labels
enhancement New feature or request fb-cmf

Comments

@zbluebugz
Copy link
Owner

Can Regular Expressions be used in text-filters?

@zbluebugz zbluebugz added enhancement New feature or request fb-cmf labels Dec 10, 2022
@zbluebugz zbluebugz self-assigned this Dec 10, 2022
@zbluebugz
Copy link
Owner Author

Preliminary testing (after tweaking code), says it is possible. Further testing needs to be done though ...

@Bamboozul
Copy link

Is it supported in the most recent beta version (beta-4-15)?

I have 4.13-beta-v2, which supports it, but sponsored posts are reappearing.

@zbluebugz
Copy link
Owner Author

v4.15 has the updated code for catching sponsored posts (mid-Feb 2023 change). Does not have the Regular Expression code as I haven't spent much time testing / using it.

Cloned a copy for you to use. Has the Regular Expression code. (v4.15re)

Available for use: beta/archive/beta-4-15-w-regexp.js

@Bamboozul
Copy link

v4.15 has the updated code for catching sponsored posts (mid-Feb 2023 change). Does not have the Regular Expression code as I haven't spent much time testing / using it.

Cloned a copy for you to use. Has the Regular Expression code. (v4.15re)

Available for use: beta/archive/beta-4-15-w-regexp.js

Thank you

@zbluebugz
Copy link
Owner Author

There's bug with version 4.15/4.15re.

If you choose to hide the notifications, fb will complain after a few posts. Setting hide notifications to either 1 or more, will not cause fb to complain.

Will implement a fix later on.

@zbluebugz
Copy link
Owner Author

Version v4.16/v4.16re has been released. Fixed issue with setting causing FB to throw a wobble.

Available for use: beta/archive/beta-4-16-w-regexp.js

@Bamboozul
Copy link

Version v4.16/v4.16re has been released. Fixed issue with setting causing FB to throw a wobble.

Available for use: beta/archive/beta-4-16-w-regexp.js

Much appreciated.

@zbluebugz
Copy link
Owner Author

Version v4.17/v4.17re has been released.

  • Now works in FireMonkey & GreaseMonkey.
  • Changed Sponsored filter rule
  • Added option to hide "# shares" on the news/groups feed posts.

Available for use: beta/archive/beta-4-17-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version v4.18/v4.18re has been released.

Updated News Feed sponsored rule
Updated News Feed suggestions rule

Available for use: beta/archive/beta-4-18-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version v4.19/v4.19re has been released.

Updated News Feed posts selection rule (FB changed structure)

Available for use: beta/archive/beta-4-19-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version v4.20/v4.20re has been released.

  • Added "Feeds (most recent)" to the clean up rules (FB recently introduced the "Feeds (most recent)" feature)
  • Updated Search Feed sponsored posts rule

Available for use: beta/archive/beta-4-20-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version v4.21/v4.21re has been released.

  • Updated news feed detection rules - for older HTML structures
  • Updated watch videos feed detection rules
  • Added Greek (Ελληνικά)
  • Updated various functions

Available for use: beta/archive/beta-4-21-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version 4.22re released.

  • Updated news feed detection rules - for new HTML structures
  • Updated events you may like rules

Available for use: beta/archive/beta-4-22-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version 4.23re released.

  • Various changes made

Available for use: beta/archive/beta-4-23-w-regexp.js

@zbluebugz
Copy link
Owner Author

Version 4.24re released.

  • Fixed up 4.23re selection/detection rules

Available for use: beta/archive/beta-4-24-w-regexp.user.jss

@zbluebugz
Copy link
Owner Author

Version 4.25re released.

Available for use: beta/archive/beta-4-26-w-regexp.user.jss

@Bamboozul
Copy link

Could you combine the two versions and include regular expressions as an option?

@zbluebugz
Copy link
Owner Author

Will do - working on v5.0x at the moment.

Can you give me a sample (simple one) of regular expression you use?

@Bamboozul
Copy link

Can you give me a sample (simple one) of regular expression you use?

beIN SPORTS.*Formula1
beIN SPORTS.*#MotoGP

Anime Trending.*\bEpisode \b.*\bPreview\b
Anime Trending.*ICYMI

ASTRA 19 استرا.*#الدوري_الفرنسـي
ASTRA 19 استرا.*الدوري_الفرنسـي
ASTRA 19 استرا.*الدوري الفرنسي

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fb-cmf
Projects
None yet
Development

No branches or pull requests

2 participants