Skip to content

Instantly share code, notes, and snippets.

@Griever
Created February 20, 2009 13:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Griever/67460 to your computer and use it in GitHub Desktop.
Save Griever/67460 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name StatusbarInURLBar3.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @include main
// @compatibility Firefox 4.0b7
// @note Firefox 3.6, 4.0b6 はこちら https://gist.github.com/67460/d87a8f38280d26f1ccb81fcbb1c3b6a1fcb07e90
// ==/UserScript==
(function(){
if (!isElementVisible(gURLBar)) return;//アドレスバーが無かったらストップ
var urlbarIcons = document.getElementById('urlbar-icons');
var statusBar = document.getElementById('status-bar');
statusBar.setAttribute("context", "");//ツールバーのコンテキストメニューがでないように
urlbarIcons.insertBefore(statusBar, urlbarIcons.firstChild);
var style = <![CDATA[
#status-bar {
min-height: 18px !important;
margin: 0px !important;
border: none !important;
background-color: transparent !important;
}
/*
.urlbar-textbox-container-children {
opacity: 1 !important;
-moz-transition: none !important;
}
.urlbar-origin-label {
display: none !important;
}
.urlbar-over-link-box {
background-image: none !important;
padding-left: 4px !important;
}
*/
]]>.toString();
var sspi = document.createProcessingInstruction(
'xml-stylesheet',
'type="text/css" href="data:text/css,' + encodeURI(style) + '"'
);
document.insertBefore(sspi, document.documentElement);
sspi.getAttribute = function(name) {
return document.documentElement.getAttribute(name);
};
})()
@kodango
Copy link

kodango commented Nov 14, 2010

May be you can combine this style "Show hovered link address at bottom-left " into this script,
the address is http://userstyles.org/styles/38664

But there is one problem, when you hovered on a long link, such as the google search result's cache address, then the address showed in the locationbar and the statusbar icon will overlap, like this:

Alt text

Thanks.~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment