this post was submitted on 10 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
 

Introducing kbin Feed Curator! An upgraded version of my 'Enough about Reddit already' script, it now allows you to add to your blacklist from kbin itself, instead of having to edit the script.

A screenshot showing the blacklist modal

Now also includes settings, thanks to kbin-mod-options! So far the settings are 1) a toggle to completely hide blocked posts instead of displaying a placeholder message and 2) the button to open the blacklist modal.

A screenshot showing the script settings

A screenshot showing the blocked post placeholder

Jul 16 2023 - version 0.2 - integrating changes from @Ori and a bug fix for getting the magazine name when on a magazine page

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

this is amazing! thank you

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

Updated to version 0.2, integrating changes from @Ori and a bug fix for getting the magazine name when on a magazine page

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

I'm glad to see someone getting use out of kbin-mod-options. This looks like a useful userscript. Good work!

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

@fiofiofio

It may be worthwhile to add a check around your removeButtons.querySelectorAll("button").forEach(button => { section. For instance:

if (removeButtons.length > 0) {
    removeButtons.querySelectorAll("button").forEach(button => {
        button.style.backgroundColor = 'var(--kbin-vote-bg)';
        button.style.color = 'var(--kbin-vote-text-color)';
        button.style.marginLeft = 'var(--kbin-entry-element-spacing)';
        button.style.padding = '2px';
        button.style.border = 'var(--kbin-section-border)';
    });
}

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

This has worked only once. After that the "edit" button is dead again. Thanks anyway.

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

Odd. Your console say anything? (F12 -> Console)

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

OK fresh install gives me removeButtons.querySelectorAll is not a function, and I also get this with your code. BTW I'm not at my PC, just a tablet :/

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

@gabriell - Thanks for sharing. I'm going to share my full edit of the script, replace your local version with the one below and see if your issues resolve.

pastebin - kbin Feed Curator

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

Sadly this doesn't work. Thanks for sharing BTW. I turned off all of the other scripts thinking they might be in conflict but it still gives the same error:/

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

Thanks for the suggestion! I'll add that to my next update, I also found an issue with retrieving the magazine name if you're in a magazine feed that I need to fix.

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

This is great,. But the edit button does nothing. I'm on android, using Firefox with Kbin usability pack, Subscription panel and Enhancement script.