What is meta? ×
Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 150 Stack Exchange communities.

Basically like the all sites and inbox tabs, I'd like the hot questions tab to have an icon representing the site the questions belong to

share|improve this question

1 Answer 1

up vote 5 down vote accepted

I agree, this would be very useful.

You could try the following userscript:

// ==UserScript==
// @name           So Hot Images
// @namespace      http://josh.gitlin.name/javascripts  
// @description    Adds favicon images to the hot questions supercollider
// @version        1.0.2
// @include        http://*.stackoverflow.com/*
// @include        http://*.stackexchange.com/*
// @include        http://serverfault.com/*
// @include        http://superuser.com/*
// ==/UserScript==

var script = document.createElement("script");
script.textContent = "(" + grease.toString() + ")()";

function grease()
  var hotIcons = function ()
    $('#seContainerHot div.itemBox').each(function(){
        var favicon=$('a.siteLink',this)[0].href+'favicon.ico';
        this.innerHTML = '<img class="favicon" src="'+favicon+'" style="float:left;">'+this.innerHTML
  window.setInterval(hotIcons, 1000);

Link to install into Greasemonkey or Chrome tested on Chrome 15.0.874.106.

favicon fhc ftw!

Yes, I know this script could be improved. It probably doesn't have to run every second and the icons are on the wrong side. It was a super quick hack. But with a bit of motivation I could probably improve it... (hint, hint)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .