Skip to main content
1 of 5
brunnerh
  • 661
  • 3
  • 10

Fitts's Law Favourite Tags Script

A Screenshot

For people like myself who fail at hitting things or just want to hit them faster (i use this in combination with the delete button removal script)

Sorry to not provide a file for download but i am sure you will manage somehow:

// ==UserScript==
// @name           Fitts's Law Favourite Tags
// @namespace      stackoverflow
// @include        *stackoverflow.com*
// ==/UserScript==

(function ()
{
    var cancelWaiting = false;
    jq_wait();

    function jq_wait()
    {
        if (typeof unsafeWindow.jQuery == 'undefined')
        {
            window.setTimeout(jq_wait, 100);
        } else
        {
            $ = unsafeWindow.jQuery;
            window.setTimeout(function () { cancelWaiting = true; }, 5000);
            $(document).ready(favs_wait);
        }
    }

    function favs_wait()
    {
        if ($("#interestingTags .post-tag").length == 0)
        {
            window.setTimeout(favs_wait, 10);
        }
        else
        {
            $("#interestingTags .post-tag").css("padding", "5px 10px");
        }
    }
})();

(Improvement suggestions/edits are welcome)

brunnerh
  • 661
  • 3
  • 10