[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

fiofiofio,
fiofiofio avatar

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

minnieo,
minnieo avatar

this is amazing! thank you

gabriell,

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

Ori,

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

Ori,

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

gabriell,

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

Ori,

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

gabriell,

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

Ori,

@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

gabriell,

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

Ori,

For clarity: Making this change will fix your edit button in most cases :)

fiofiofio,
fiofiofio avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • kbinStyles
  • kavyap
  • InstantRegret
  • tacticalgear
  • DreamBathrooms
  • khanakhh
  • magazineikmin
  • thenastyranch
  • Youngstown
  • GTA5RPClips
  • slotface
  • Durango
  • ethstaker
  • rosin
  • vwfavf
  • provamag3
  • everett
  • cubers
  • cisconetworking
  • ngwrru68w68
  • normalnudes
  • modclub
  • mdbf
  • osvaldo12
  • tester
  • anitta
  • Leos
  • megavids
  • JUstTest
  • All magazines