MegaMoo
04/24/18 08:18AM
I built a tool to search favorites
I've always wanted to be able to search among my favorites and was disappointed to see the admins don't have the rights to add features like this, so I decided to take it upon myself to create a tool.

I made a simple HTML page with JavaScript to send requests for pages of favorites and filter them out with given tags. I'm not very well-versed with web development so the code is messy and slow, but it gets the job done.

It supports tags separated by spaces like the main site, as well as exclusions (with "-"), but no wildcards. Leave tags empty for a single page with all your favorites. IE and Edge not supported.

Enjoy!

EDIT: Here is the link to the new web-based site: inspiring-benz-219a0a.netlify.app/favoritessearch.html
bipface
04/24/18 02:00PM
huh, that cors-anywhere site seems pretty handy, i'll have to remember it

a nice tool you've made there; i know a lot of people have been asking for something like it

seems fairly solid too
the only way i could break it is by spamming the search button (which is fair enough)

users should be wary of typing extraneous spaces in the search bar though; it doesn't like that

in any case, i'm sure your effort will be greatly appreciated; well done
Asian_Transformation
04/24/18 07:23PM
Good job :)
justausername
04/25/18 05:58AM
Nice work!
Rhodehaus
03/07/19 05:38AM
When I try to use it, it just says I have no favorites.. :(
justausername
03/07/19 06:40AM
Rhodehaus said:
When I try to use it, it just says I have no favorites.. :(


You need to use your ID, not your account name. The site's changed a bit since this was made, AFAIK you can only get your own ID now and you get that by going to my account > my profile.

This tool is also rather broken now, the search still works but the site's thumbnail url changed so thumbnails don't work anymore.
JohnesJoestar
03/08/19 12:16AM
It is pretty obvious but this doesn't work on mobile does it? I mostly acess this site through my phone.
bipface
03/08/19 10:29AM
JohnesJoestar said:
It is pretty obvious but this doesn't work on mobile does it? I mostly access this site through my phone.

if you fix up the current bugs, there's no reason it wouldn't work on mobile

if i get some time this weekend i might have a go at repairing it
Porn_collections
03/08/19 08:12PM
You are a god thank you
MegaMoo
03/10/19 08:26AM
I also realized things broke recently, so I fixed it and took the opportunity to update it a bit. Now it should be working again and a bit easier to use to boot.

New features:
* Can now cancel the loading
* Can now view original image straight from the thumbnail

Enjoy!
www.dropbox.com/s/b36xyny...oritesSearch%202.zip?dl=0
bipface
03/10/19 09:10AM
fantastic
justausername
03/10/19 10:03AM
Glad you're back!

The original image button doesn't really seem to work on webms, it either just gives me a jpg or a webm that never loads. If I refresh on said webm link it gives me:

Missing required request header. Must specify one of: origin,x-requested-with
MegaMoo
03/10/19 11:09AM
justausername said:
Glad you're back!

The original image button doesn't really seem to work on webms, it either just gives me a jpg or a webm that never loads. If I refresh on said webm link it gives me:

Missing required request header. Must specify one of: origin,x-requested-with


Good catch, seems I fiddled with it a bit too much. Here's a version with the fix, though it's not perfect since it relies on the "animated" tag. Should work in most cases, though.

www.dropbox.com/s/thdr27i...oritesSearch%203.zip?dl=0
bipface
03/10/19 11:28AM
MegaMoo said:

for getting the original image link, i think you'd be better off hitting the API instead of this brute-force search,

i propose this solution:
pastebin.com/yrYYwtmJ
where `id0` is the post ID (not the filename)
which you can get in the getThumbs loop with:
(new URLSearchParams(as[0].search)).get("id")

the drawback is that the API's database can be up to 5 minutes behind the main database
MegaMoo
03/11/19 06:08AM
bipface said:
...


Goddamn, where were you when I was writing that insane brute force logic? Next thing you'll tell me there actually is an API to just search favorites...

But really, thanks for the advice. Here's version 4: www.dropbox.com/s/ow9h82w...oritesSearch%204.zip?dl=0
1 2345>>>


Forum Index