Created
February 20, 2009 13:51
-
-
Save Griever/67460 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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); | |
}; | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
Thanks.~