rthaut / deviantART-Filter

A browser extension that allows you to filter DeviantArt by user, keyword, and/or category.
https://rthaut.github.io/deviantART-Filter/
GNU General Public License v3.0
30 stars 1 forks source link

[Suggestion] Automatically "Show Less Like This" #210

Open TechnoColt opened 1 year ago

TechnoColt commented 1 year ago

I'm not sure if this is possible with how the extension works, as I haven't taken a look at the source code, but would it be feasible to have a toggleable option to automatically click the "show less like this" button for any filtered deviation? It stands to reason that if I'm filtering out a post, I'm more than likely going to want to click that button (for all the good it does). Currently, the method of hiding filtered deviations makes clicking this button manually difficult.

dw5 commented 1 year ago

Developer sure can, for whatever gets filtered, the HTML provides data-userid for user and for post I guess it could simply be extracted by taking part of href to get itemid which is needed make post request to

https://www.deviantart.com/_napi/shared_api/less_like (show less like this api).

{"itemid": <post number thingy> ,"typeid":1,"reason_shown":"","
ownerid":"data-user-id",
"cursor":"<idk probably related to placement?>",
"csrf_token":"<doesnt change, seems like login token>"}

additionally something like this can be used as source for inspiration / converted into self-script https://github.com/Niedzwiedzw/youtube-publish-drafts/blob/master/youtube-publish-drafts.js

might be problematic only because of ratelimit (to server its unusual, typical user doesn't do this many specific show less requests so fast)

Fabian42 commented 9 months ago
  1. This could be a nice feature, but of course it would have to be optional. I have some filters with potential false positives and would not want it to mess up my recommendations (more than they already are sometimes).
  2. An alternative/additional nice feature would be hiding the picture client-side, instead of via the "show less like this" way.
  3. Have you actually seen a difference from "show less like this"? It seems to me like it does absolutely nothing. I can click that on episode 7854763 of a webcomic that DA recommends me for some reason, reload the page and get episode 583495145 of the same webcomic in the same place. It's also not an issue of slow recalculation, I still get the same thing recommended days and weeks later, no matter how often I do it.
Fabian42 commented 9 months ago

My past self already had idea 2 over a year ago: #206 :D