artillect ( artillect@kbin.social ) to Kbin Userstyles and Userscripts@kbin.social · 3 years agoShare your CSS and JS snippets herepinmessage-squaremessage-square32linkfedilinkarrow-up122file-text
arrow-up122message-squareShare your CSS and JS snippets herepinartillect ( artillect@kbin.social ) to Kbin Userstyles and Userscripts@kbin.social · 3 years agomessage-square32linkfedilinkfile-text
Here’s a place to share your little tweaks that you might think aren’t big enough to warrant a full post, share away!
minus-squarea-ninny-moose ( a-ninny-moose@kbin.social ) linkfedilinkarrow-up4·3 years agotampermonkey 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’); }); }
minus-squareEnglishMobster ( EnglishMobster@kbin.social ) linkfedilinkarrow-up1·3 years agoI can see that it’s running, but it doesn’t seem to work for me. :(
minus-squareSparkIT ( SparkIT@kbin.social ) linkfedilinkarrow-up1·3 years agoI’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.
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’) );
});
}
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.