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
- Tampermonkey - FireMonkey (Firefox only) - Violentmonkey ### Stylesheet managers
- Stylus (chrome/edge, firefox) - Cascadea (safari only)
founded 1 year ago
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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'});
});
}
I can see that it's running, but it doesn't seem to work for me. :(
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.