this post was submitted on 11 Jun 2023
28 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
 

Here's a place to share your little tweaks that you might think aren't big enough to warrant a full post, share away!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 1 year ago* (last edited 1 year ago) (2 children)

tampermonkey script to automatically hide voted (upvoted or downvoted) posts. Keep your feed always fresh.

// ==UserScript==
// @name hide voted posts
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://kbin.social/
// @match https://kbin.social/?p=*
// @icon https://www.google.com/s2/favicons?sz=64&domain=kbin.social
// @grant none
// ==/UserScript==
//(function() {

//})();
var $ = window.jQuery;

window.setInterval(clearVoted, 1000);

function clearVoted() {
'use strict';
var votedPosts = $('.vote__up.active') || $('.vote__down.active');
votedPosts.each(function() {
$(this).closest('.entry').css({'display':'none'});
});
}

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

I can see that it's running, but it doesn't seem to work for me. :(

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

I'm not sure if this is fine but since it wasn't active on every page I've added an asterisk on row 7 like this:
// @match https://kbin.social/*
and it seems to work.