Spyke
kbinStyles·Kbin Userstyles and Userscriptsbyfiofiofio

[Userscript] kbin Feed Curator

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

View original on kbin.social
Orireply
sacredori.net

@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)';
    });
}

2

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.

1
gabriellreply
kbin.social

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

1
Orireply
sacredori.net

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

0
gabriellreply
kbin.social

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 :/

1

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:/

2

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

1

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

1

You reached the end

[Userscript] kbin Feed Curator | Spyke