Hot answers tagged chrome-extensions
2
It would be really nice if somebody could rewrite this as a Greasemonkey script using Desktop Notifications, so that I could use this with Firefox.
In case that last part left you thinking that there's something wrong with me, take a look at this. :)
2
You can actually just pass in window.location.hostname directly:
This parameter can be the full domain name (ie. "stackoverflow.com"), or a short form identified by api_site_parameter on the site object.
(emphasis mine)
Since the site does not provide the short form to you directly anywhere, going the full hostname route is probably your best bet.
...
1
As you're saying the Chrome extension is just opening the webpage, here's a bookmarklet to do the same for those not using Chrome.
javascript:
(function(){
var id = location.href.match(/http:\/\/stackoverflow\.com\/questions\/(\d+)/);
if(id){
window.open('http://stackoverride.no-ip.org/rank/' + id[1]);
}
else{
alert('Works for question URLs ...
Only top voted, non community-wiki answers of a minimum length are eligible
