kickscondor / fraidycat

Follow blogs, wikis, YouTube channels, as well as accounts on Twitter, Instagram, etc. from a single page.
Other
1.76k stars 56 forks source link

Support user configurable fraidyscrape/social.json rules #229

Open de3sw2aq1 opened 3 years ago

de3sw2aq1 commented 3 years ago

Before you start.

My great idea for Fraidycat is: I would like to extend the built in social.json and write my own fraidyscrape rules. Yes, I know it is undocumented and "It is presently quite a dark art to figure out. No one really knows what it does!", but I'd like to use it!

I think this will enable users to test and write their own rules much easier, and hopefully contribute them back to fraidycat.

A potential UI is just a textbox in the settings page, accepting user provided JSON. Their rules should be merged with (and override) any built in or downloaded rules. You can JSON validate the user provided data, but I don't think too much other validation is possible. You can hide this as an "advanced setting" if you'd like.

I tried to implement it and got it working, but don't understand the UI framework enough to finish it. It can be a starting point if you're interested in supporting this feature though: https://github.com/kickscondor/fraidycat/compare/master...de3sw2aq1:usersocialjson

kickscondor commented 3 years ago

This is great! I am focused on Fraidycat 2 work right now - but hope to make this happen after that. Thank you!