Skip to content

Instantly share code, notes, and snippets.

@sogoo
sogoo / gist:5016768
Last active December 14, 2015 02:49
google site search /bookmarklet
javascript:var%20ax=prompt('%E8%B0%B7%E6%AD%8C%E7%AB%99%E5%86%85%E6%90%9C%E7%B4%A2\n%E8%AF%B7%E8%BE%93%E5%85%A5%E6%90%9C%E7%B4%A2%E5%85%B3%E9%94%AE%E5%AD%97','');if(ax.length>0){window.open('http://www.google.com/search?hl=zh-CN&q=site:'+encodeURIComponent(location.hostname)+'%20'+encodeURIComponent(ax))};void(0)
@sogoo
sogoo / gist:4693058
Created February 1, 2013 18:18
4 dabr/netputweets
body{margin:auto;width:666px;} .avatar{left:auto;}
@sogoo
sogoo / gist:4644667
Last active December 11, 2015 18:49
<div id="sg">......</div>
/* Hover Display */
#sg {
opacity:0.1;
transition:0.8s;
-moz-transition:0.8s; /* Firefox 4 */
-webkit-transition:0.8s; /* Safari and Chrome */
-o-transition:0.8s; /* Opera */
}
@sogoo
sogoo / gist:4644635
Last active December 11, 2015 18:49
Auto-Hide Bookmarks Toolbar 4 Firefox
/* Auto-Hide Bookmarks Toolbar for Firefox */
#PersonalToolbar {
visibility: collapse !important;
}
#navigator-toolbox:hover > #PersonalToolbar {
visibility: visible !important;
}
@sogoo
sogoo / gist:4644583
Last active December 1, 2017 06:11
MultiColumn Bookmarks 4 Firefox
/* MultiColumn Bookmarks for Firefox */
#bookmarksMenu menupopup .scrollbox-innerbox, .bookmark-item[container="true"] menupopup .scrollbox-innerbox {
width: 650px !important; /*display width*/
/* width: 850px !important; *//*4 colonnes*/
display: table !important;
}
#bookmarksMenu .bookmark-item, .bookmark-item[container="true"] .bookmark-item {
min-width: 300px !important;/*title width*/