this post was submitted on 01 Jul 2023
11 points (100.0% liked)

Kbin Userstyles and Userscripts

15 readers
1 users here now

Custom CSS and JS to help improve your Kbin experience! ### Userscripts Greasy Fork ### Stylesheets UserStyles.world ### Userscript managers

founded 1 year ago
11
Magazine Pop-up v0.1.8 (media.kbin.social)
submitted 1 year ago* (last edited 1 year ago) by [email protected] to c/[email protected]
 

Hi all,

I'm currently working on a script that shows a pop-up element of the sidebar subscribe/block button when hovering over the magazine links on the threads page. Click here for the code:

This was done with the help of chatgpt (which variably sucks) so if you want to make a variation of the code go for it! I think this feature would be great if it was implemented in the site itself similar to hovering over usernames. This way it makes it easy to subscribe and block magazines without having to click into the page itself.

Feel free to point out any bugs and I will try and suss it out.

**EDIT: If you are using Violentmonkey and are having issues when clicking subscribe or block, try and use Tampermonkey or a different script add-on. There are some discrepancies on my end with firefox and VM and I'm not completely sure why error codes are thrown. I have read that there have been similar issues before with VM and Firefox due to Firefox CSP issues.

v1.6

Updated it to hide faster once finished interacting with the popup.

v1.7

added boxshadow

v1.8

performance improvement

Make sure to activate "Check for updates" if it isn't already activated.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 3 points 1 year ago

omg i love this! it's looking really good

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

on some magazines

Can you give some examples to test it on? I just tried subscribing and unsubscribing to everything on the frontpage and all of the ones there worked.

Edit: hmm, I watched your example video now, I did try [email protected] and it worked for me, though I only tried subscribing, not blocking.

Edit: blocking works for me there too.

[–] [email protected] 1 points 1 year ago (1 children)

Another issue I personally did encounter trying this out though, was that sometimes it would display the wrong popup. Instead of the magazine I'm hovering over, it would bring up the one I hovered over previously.

[–] [email protected] 2 points 1 year ago (1 children)

Yeah It’s got some bugs I haven’t sussed out yet but only because I’ve been trying to figure out the bad request issue. Curious that you’re not having that issue! What browser and extension are you using? If it is working for you then maybe it’s something on my end. Will do some testing a bit later.

[–] [email protected] 1 points 1 year ago (1 children)

I'm using Edge version 114.0.1823.58, on Windows 11, with Violentmonkey for the userscripts.

Do you have any others besides [email protected] I can try to make sure it's really not occuring for me? I feel like one is a bit of a small sample size to be sure.

[–] [email protected] 1 points 1 year ago (1 children)

I just tried it on my Android phone too, where I'm using the Kiwi browser (mobile chromium with extensions). Violentmonkey too so only the device and browser are different.

I only tried out like three magazines, since it doesn't work well at all on the phone (of course, wasn't expecting it to), with one of them being [email protected], and I didn't get the error there either. So I doubt Edge is the reason it works for me.

[–] [email protected] 1 points 1 year ago

I think the issue has to do with Firefox & violentmonkey. I read there's been issues in the past due to websites cps. Don't know much about it, but I'm currently running tamper monkey on firefox and I have no problems. I'll state a warning as an edit. Thanks for letting me know!

[–] [email protected] 1 points 1 year ago

Oh I like that popup - looks nicer than what I hacked together

load more comments
view more: next ›