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
//看到WScript字样你应该就知道这是一个运行在宿主上面的脚本了 | |
//因为运用到的正则处理比较多,所以我用jscript作为编写语言 | |
(function(WS,City){ | |
//由于获取的内容确定是utf-8编码,而jscript的字符串处理默认就是utf-8,因此不需要编码转换了 | |
function getURL(url, method, callback) { | |
with(new ActiveXObject("msxml2.xmlhttp")) { | |
open(method, url + (url.match(/\?/) ? '&': '?') + Math.random(), 0); | |
setRequestHeader('User-Agent', | |
'Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31'); | |
send(); |
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
#Top{background:#3FADB3;border:none;} | |
#Bottom{border-top: 3px solid #A3CEBE;} | |
a.top:link,a.top:visited,a.top:active,.topic_buttons div:first-child{text-shadow:none;color:#fff !important;} | |
.cell{background: #F8F8F8;} | |
.header{border-bottom: 3px solid #E5E8EE;} | |
.box{box-shadow:none;border:none;} | |
.topic_buttons{background:#ddd;} | |
a.tb:link, a.tb:visited, a.tb:active{color:#f5f5f5;text-shadow:none;} | |
#Search>form>div{background: none !important;} | |
#q{background: #FFF !important; |
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
<meta name="viewport" content="width=device-width, user-scalable=no"> |
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
@media screen and (max-width: 600px){ | |
nav{ | |
display: 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
HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\Compatibility | |
HKEY_CLASSES_ROOT\exefile\shellex\ContextMenuHandlers\Compatibility | |
HKEY_CLASSES_ROOT\batfile\ShellEx\ContextMenuHandlers\Compatibility |
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
function readablizeBytes(bytes) { | |
var s = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB']; | |
var e = Math.floor(Math.log(bytes)/Math.log(1024)); | |
return (bytes/Math.pow(1024, Math.floor(e))).toFixed(2)+" "+s[e]; | |
} |
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
/* 编辑器初始化代码 start */ | |
var editor; | |
KindEditor.ready(function(K) { | |
editor = K.create('#tougao_content', { | |
width: '580px', | |
resizeType : 1, | |
allowPreviewEmoticons : false, | |
allowImageUpload : false, /* 开启图片上传功能,不需要就将true改成false */ | |
items : [ | |
'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline', |
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 getQueryStringRegExp = function(name) { | |
var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i"); | |
if (reg.test(location.href)) return unescape(RegExp.$2.replace(/\+/g, " ")); | |
return null; | |
}; |
OlderNewer