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
javascript:(function(){var api='https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?url={URL}&container=focus&gadget=a&no_expand=1&rewriteMime=image%2F*&nocache=1',imgs=document.getElementsByTagName('img'),i=0,img;for(;img=imgs[i++];){if(img.src.indexOf('googleusercontent') < 0 && /farm3|farm5/i.test(img.src)){img.src=api.replace('{URL}',img.src);}}})(); |
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
var getCarePos = function (node) { | |
var range, range2, pos = []; | |
if (document.selection) { | |
range = document.selection.createRange(); | |
range2 = range.duplicate(); | |
range2.moveToElementText(node); | |
range2.setEndPoint('EndToEnd', range); | |
pos = [range2.text.length - range.text.length, range2.text.length]; | |
} else { | |
pos = [node.selectionStart, node.selectionEnd]; |
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 douban_xiami | |
// @namespace org.kejun | |
// @include http://music.douban.com/* | |
// ==/UserScript== | |
//使用说明: | |
// 1. 安装本脚本到Greasemonkey | |
// 2. 到http://music.douban.com/recommended | |
// 3. 点击专辑封面会自动用虾米播放(如果窗口没弹出,检查是否被浏览器拦截) |
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
au BufWritePost *.less silent !lessc -x %:p > %:r.css |
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
javascript:void(function(_d){ var s = _d.createElement('script'); s.type = 'text/javascript'; s.src = 'http://kejun.github.com/demos/floatline.js'; _d.getElementsByTagName('head')[0].appendChild(s); }(document)); |
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
@import url(http://img3.douban.com/css/packed_douban4234332340.css); | |
/* 通知框 */ | |
.notification-popup { position:absolute;width:290px;top:100px;left:50%;background:#fff;border:1px solid #f0f0f0; } | |
.notification-popup .ft { text-align:center;background:#fafafa;line-height:36px; } | |
.notification-popup li, | |
.notification-popup .content { overflow:hidden;zoom:1; } | |
.notification-popup .pic { float:left;margin-right:10px; } | |
.notification-popup li { padding:12px 10px;color:#999;border-bottom:1px solid #f0f0f0; } | |
.notification-popup .opts { float:right; } |
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
@import url(http://img3.douban.com/css/packed_douban7774204613.css); | |
.more-events .bd { overflow:hidden; } | |
.more-events li { display:inline-block;*display:inline;zoom:1;margin:0 -2px 0 .5ex;padding:0 1ex 0 1ex;border-left:1px solid #aaa;line-height:10px;_margin-bottom:10px;letter-spacing:normal;word-spacing:normal; } | |
.more-events li a { _position:relative; } | |
.more-events ul { margin-left:-1ex;letter-spacing:-0.31em;*letter-spacing:normal;word-spacing-0.43em; } | |
/* 可以灵活的适应宽度 */ |
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
@import url(http://img3.douban.com/css/packed_douban7774204613.css); | |
/* 通用按钮样式 */ | |
/* reset */ | |
.bn-small, | |
.bn-cta, | |
.bn-flat input { margin:0;border:none;background:transparent;cursor:pointer;-webkit-appearance: none; } |
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
.mod { | |
height:100px; | |
width:50%; | |
margin:auto; | |
font-size:12px; | |
text-align:center; | |
background-image: | |
url(http://img3.douban.com/icon/u1170308-29.jpg), |
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
@import url(http://img3.douban.com/css/packed_douban4234332340.css); | |
/* 通知框 */ | |
.notification-popup { position:absolute;width:290px;top:100px;left:50%;background:#fff;border:1px solid #aaa; } | |
.notification-popup .ft { text-align:center;background:#fafafa;line-height:36px; } | |
.notification-popup li, | |
.notification-popup .content { overflow:hidden;zoom:1; } | |
.notification-popup .pic { float:left;margin-right:10px; } | |
.notification-popup li { padding:12px 10px;color:#999;border-bottom:1px solid #aaa; } | |
.notification-popup .opts { float:right; } |
OlderNewer