3

Tampermonkey script that brings back an old Stack Exchange feature that never made it out of beta:

// ==UserScript==
// @name         Sticky post vote buttons
// @namespace    http://tampermonkey.net/
// @version      1
// @description  Sticky post vote buttons
// @author       RANDOM HOMO SAPIEN
// @match       *://*.askubuntu.com/*
// @match       *://*.mathoverflow.net/*
// @match       *://*.serverfault.com/*
// @match       *://*.stackapps.com/*
// @match       *://*.stackexchange.com/*
// @match       *://*.stackoverflow.com/*
// @match       *://*.superuser.com/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    $('.votecell .vote').css({'position': 'sticky', 'top': '60px'});
})();
3
  • 1
    I found that this doesn't work (in some browsers at least) on the English Language & Usage Stack Exchange because overflow: auto; has been set on #content, so in my local copy I've added $('#content').css({'overflow': 'visible'}); to make it match the other sites. I also prefer having the vote buttons float down next to the comment section as well as the question/answer, so I added $('.votecell').css({'grid-row': '1 / span 2'}); too.
    – 3D1T0R
    Commented Sep 13, 2018 at 18:01
  • 2
    This script isn't working properly for me any more. ☹
    – 3D1T0R
    Commented Feb 21, 2019 at 23:56
  • Just change the main query line to this $('.js-voting-container').css({'position': 'sticky', 'top': '60px'});
    – Vijay
    Commented Aug 27, 2020 at 12:45

0

You must log in to answer this question.

Browse other questions tagged .