svim4firefox

2021-02-19 06:28:10 -0500
// an example to create a new mapping `ctrl-y`

mapkey('aky', '关键词密度查询', function () {
javascript:(
function(){
var T={},W=[],C=0,s,i;
function F(n){
var i,x,a,w,t=n.tagName;
if(n.nodeType==3){
a=n.data.toLowerCase().split(/[\s\(\)\:\,\.;\"<"\>\&\'\"]/),i;
for(i in a)if(w=a[i]){w=" "+w;T[w]=T[w]?T[w]+1:1;++C;}}if(t!="SCRIPT"&&t!="STYLE")for(i=0;x=n.childNodes[i];++i)F(x)}F(document);for(i in T)W.push([T[i],i]);W.sort(function(a,b){var x=b[0]-a[0];return x?x:((b[1]<a[1])?1:-1)}); s="<h3>"+C+" words</h3>";for(i in W)s+=W[i][0]+":"+W[i][1]+"<br>";with(open().document){write(s);close()}})()
});

mapkey('auy', 'YouTube下載', function () {var configs={facebook:{r:'https?:\/\/[a-zA-Z\.]*facebook\.com\/',go:''},youtube:{r:'https?:\/\/[a-zA-Z\.]*youtube\.com\/',go:'y2'},dailymotion:{r:'https?:\/\/[a-zA-Z\.]*dailymotion\.com\/video\/',go:'dailymotion'},vimeo: {r: 'https?:\/\/[a-zA-Z\.]*vimeo\.com\/',go:'vimeo'},twitter: {r:'https?:\/\/[a-zA-Z\.]*twitter\.com\/',go:'twitter'},instagram: {r:'https?:\/\/[a-zA-Z\.]*instagram\.com\/p\/',go:'instagram'},tumblr: {r:'https?:\/\/[a-zA-Z\.]*tumblr\.com\/',go:'tumblr'}};for(var i in configs){var patt=new RegExp(configs[i].r);var current=window.location;if(patt.test(current)){window.open('http://mydowndown.com/'+configs[i].go+'#'+current);return}}alert('不接受此下載來源!')});

mapkey('aub', '彈出軟鍵盤', function () {var st; st = document.createElement('script'); st.charset = 'utf-8'; st.src = 'https://mimace.sinaapp.com/tool/soft_keyboard/plugins/soft_keyboard.js'; document.body.appendChild(st);});

mapkey('ahl', '高亮关键词', function () {
var count=0, text, dv;text=prompt ( "请输入高亮关键词:", "" ) ;if ( text==null || text.length==0 ) return;dv=document.defaultView;function searchWithinNode ( node, te, len ){ var pos, skip, spannode, middlebit, endbit, middleclone;skip=0;if ( node.nodeType==3 ){ pos=node.data.toUpperCase () .indexOf ( te ) ;if ( pos>=0 ){ spannode=document.createElement ( "SPAN" ) ;spannode.style.backgroundColor="yellow";middlebit=node.splitText ( pos ) ;endbit=middlebit.splitText ( len ) ;middleclone=middlebit.cloneNode ( true ) ;spannode.appendChild ( middleclone ) ;middlebit.parentNode.replaceChild ( spannode,middlebit ) ;++count;skip=1; }} else if ( node.nodeType==1&& node.childNodes && node.tagName.toUpperCase () !="SCRIPT" && node.tagName.toUpperCase!="STYLE" ){ for ( var child=0; child < node.childNodes.length; ++child ){ child=child+searchWithinNode ( node.childNodes[child], te, len ) ; }} return skip; } window.status="Searching for '"+text+"'...";searchWithinNode ( document.body, text.toUpperCase () , text.length ) ;window.status="Found "+count+" occurrence"+ ( count==1?"":"s" ) +" of '"+text+"'.";
}) ;

mapkey('aeb', '网页地址数字减一', function () {
window.location.href=window.location.href.replace( /(\d+)([^\d]*)$/, function(t,a,b){return +a-1+b;} );void(0)
});

mapkey('aep', '网页地址数字加一', function () {
window.location.href=window.location.href.replace( /(\d+)([^\d]*)$/, function(t,a,b){return +a+1+b;} );void(0)
});

mapkey('aej', '编辑当前页面',function () {document.body.contentEditable = 'true'; document.designMode='on'; void 0;});

mapkey('ayl', '今年还剩多久', function () {tdy6Nb5 = new Date(); w3RtxZ = tdy6Nb5.getYear(); tG82Nu = (w2RtxZ < 2000) ? w2RtxZ + 1900 : w2RtxZ; YbU7v3w = 'December 31,' + tG82Nu; var eY2FH9t = new Date(YbU7v3w); alert('Number of days left this year: ' + Math.round((eY2FH9t.getTime() - tdy6Nb5.getTime()) / 86400000))});

mapkey('agc', '自動滾動叁', function () {
var _ss_interval_pointer;
_ss_speed = 3;
_ss_speed_pairs = [
[0, 0],
[1, 200.0],
[1, 120.0],
[1, 72.0],
[1, 43.2],
[1, 25.9],
[2, 31.0],
[4, 37.2],
[9, 44.8],
[8, 26.4],
[16, 32.0]
];
_ss_last_onkeypress = document.onkeypress;
_ss_stop = function () {
clearTimeout(_ss_interval_pointer)
};
_ss_start = function () {
_ss_abs_speed = Math.abs(_ss_speed);
_ss_direction = _ss_speed / _ss_abs_speed;
_ss_speed_pair = _ss_speed_pairs[_ss_abs_speed];
_ss_interval_pointer = setInterval('scrollBy(0,' + _ss_direction * _ss_speed_pair[0] + '); if((pageYOffset<=1)||(pageYOffset==document.height-innerHeight)) _ss_speed=0;', _ss_speed_pair[1]);
};
_ss_adj = function (q) {
_ss_speed += q;
if (Math.abs(_ss_speed) >= _ss_speed_pairs.length) _ss_speed = (_ss_speed_pairs.length - 1) * (_ss_speed / Math.abs(_ss_speed))
};
_ss_quit = function () {
_ss_stop();
document.onkeypress = _ss_last_onkeypress;
};
document.onkeypress = function (e) {
if ((e.charCode == 113) || (e.keyCode == 27)) {
_ss_quit();
return;
};
if (e.charCode >= 48 && e.charCode <= 57) _ss_speed = e.charCode - 48;
else switch (e.charCode) {
case 95:
_ss_adj(-2);
case 45:
_ss_adj(-1);
break;
case 43:
_ss_adj(2);
case 61:
_ss_adj(1);
break;
};
_ss_stop();
_ss_start();
};
_ss_stop();
_ss_start();;
});

mapkey('agx', '自动滚屏', function () {
var _ss_interval_pointer;
_ss_speed = prompt("SPEED");
_ss_speed_pairs = [
[0, 0],
[1, 200.0],
[1, 120.0],
[1, 72.0],
[1, 43.2],
[1, 25.9],
[2, 31.0],
[4, 37.2],
[8, 44.8],
[8, 26.4],
[16, 32.0]
];
_ss_last_onkeypress = document.onkeypress;
_ss_stop = function () {
clearTimeout(_ss_interval_pointer)
};
_ss_start = function () {
_ss_abs_speed = Math.abs(_ss_speed);
_ss_direction = _ss_speed / _ss_abs_speed;
_ss_speed_pair = _ss_speed_pairs[_ss_abs_speed];
_ss_interval_pointer = setInterval('scrollBy(0,' + _ss_direction * _ss_speed_pair[0] + '); if((pageYOffset<=1)||(pageYOffset==document.height-innerHeight)) _ss_speed=0;', _ss_speed_pair[1]);
};
_ss_adj = function (q) {
_ss_speed += q;
if (Math.abs(_ss_speed) >= _ss_speed_pairs.length) _ss_speed = (_ss_speed_pairs.length - 1) * (_ss_speed / Math.abs(_ss_speed))
};
_ss_quit = function () {
_ss_stop();
document.onkeypress = _ss_last_onkeypress;
};
document.onkeypress = function (e) {
if ((e.charCode == 113) || (e.keyCode == 27)) {
_ss_quit();
return;
};
if (e.charCode >= 48 && e.charCode <= 57) _ss_speed = e.charCode - 48;
else switch (e.charCode) {
case 95:
_ss_adj(-2);
case 45:
_ss_adj(-1);
break;
case 43:
_ss_adj(2);
case 61:
_ss_adj(1);
break;
};
_ss_stop();
_ss_start();
};
_ss_stop();
_ss_start();
});

addSearchAliasX('as', 'AppleStore', 'https://www.apple.com/search?find=');
addSearchAliasX('ac', 'AcFun', 'http://www.acfun.cn/search/?#query=');
addSearchAliasX('az', 'Amazon', 'https://www.amazon.com/s/?field-keywords=');

addSearchAliasX('b', '博客园', 'https://www.google.com/search?q=site%3Acnblogs.com%20');
addSearchAliasX('db', '豆瓣', 'https://www.douban.com/search?q=');
addSearchAliasX('bd', '百度', 'http://www.baidu.com/s?wd=');
addSearchAliasX('bl', '哔哩哔哩', 'https://search.bilibili.com/all?keyword=');
addSearchAliasX('bz', '哔哩哔哩直播', 'https://search.bilibili.com/live?keyword=');
addSearchAliasX('bt', 'bt4g', 'https://bt4g2.unblockit.eu/search/');
addSearchAliasX('bi', 'BTDigg', 'https://btdig.com/search?q=');

addSearchAliasX('c', 'Cppreference', 'https://zh.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=');
addSearchAliasX('cb', 'Cambridge', 'https://dictionary.cambridge.org/search/english/direct/?q=');
addSearchAliasX('ci', '词林', 'https://www.cilin.org/search/?words=');
addSearchAliasX('cl', 'Linux_Commend_Line', 'https://wangchujiang.com/linux-command/list.html#!kw=');
addSearchAliasX('co', 'Coursade', 'http://coursade.com/courses?q=');
addSearchAliasX('cn', 'Cppreference_en', 'https://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search=');
addSearchAliasX('ch', 'ChromeStore', 'https://chrome.google.com/webstore/search/');
addSearchAliasX('cu', 'Can-l-use', 'https://caniuse.com/#search=');
addSearchAliasX('cs', 'CSDN', 'https://so.csdn.net/so/search/s.do?q=');

addSearchAliasX('d', 'DuckDuckGo', 'https://duckduckgo.com/?q=');

addSearchAliasX('e', 'OnlineEtymologyDictionary', 'https://www.etymonline.com/search?q=');
addSearchAliasX('ej', 'emojipedia', 'https://emojipedia.org/search/?q=');

addSearchAliasX('f', '饭否', 'http://fanfou.com/search?q=');
addSearchAliasX('fi', 'finelybook', 'http://finelybook.com/?s=');
addSearchAliasX('fl', '枫林', 'http://8maple.ru/%E6%90%9C%E5%B0%8B%E7%B5%90%E6%9E%9C/?q=');
addSearchAliasX('fm', '广播电视', 'https://tingfm.com/?post_type=all&s=');
addSearchAliasX('fl', '91flac', 'https://www.91flac.com/search?type=song&kw=');

addSearchAliasX('g', 'Google', 'https://www.google.com.hk/search?q=');
addSearchAliasX('gb', 'GitHub', 'https://github.com/search?q=');
addSearchAliasX('gf', 'GreasyFork', 'https://greasyfork.org/zh-CN/scripts?utf8=%E2%9C%93&q=');
addSearchAliasX('gi', 'Google_Image', 'https://www.google.com/search?newwindow=1&tbm=isch&source=hp&biw=1536&bih=755&ei=Jlf1WqCQG4a40ASBva6oAw&btnG=Google+%E6%90%9C%E7%B4%A2&q=');
addSearchAliasX('gm', 'Google_Map', 'https://www.google.com/maps?q=');
addSearchAliasX('gp', 'Google_Play', 'https://play.google.com/store/search?q=');
addSearchAliasX('gt', 'Google_Translate', 'https://translate.google.com/#auto/zh-CN/');
addSearchAliasX('gu', 'Guru', 'https://jav.guru/?s=');

addSearchAliasX('h', '汉典', 'http://www.zdic.net/search/?q=');

addSearchAliasX('lj', '黑龙江省图书馆', 'http://221.212.156.197:8080/opac/search?hasholding=1&rows=&scWay=dim&searchWay=title&q=');

addSearchAliasX('i', 'IMDb', 'https://www.imdb.com/find?ref_=nv_sr_fn&q=');

addSearchAliasX('jz', '就诊问问', 'https://ask.nocode.com/search?q=');
addSearchAliasX('jt', '简答题', 'http://www.jiandati.com/search?query=');
addSearchAliasX('jj', '京剧剧考', 'http://scripts.xikao.com/search?q=');

addSearchAliasX('mp', '无损音乐', 'https://www.baidu.com/s?wd=site%3Awww.51ape.com%20');

addSearchAliasX('l', 'Linux命令行', 'https://wangchujiang.com/linux-command/list.html#!kw=');
addSearchAliasX('lk', 'I_am_feeling_lucky', 'https://www.google.com/search?q=');
addSearchAliasX('lt', '龙腾', 'http://www.ltaaa.com/search.html?s=');
addSearchAliasX('lg', 'Library_Genesis', 'http://libgen.io/search.php?req=');
addSearchAliasX('lv', 'lvv2', 'https://lvv2.com/?mod=search&q=');

addSearchAliasX('m', 'MDN', 'https://developer.mozilla.org/zh-CN/search?q=');
addSearchAliasX('mm', 'MyMemory', 'https://mymemory.translated.net/s.php?q=');
addSearchAliasX('mn', '萌娘百科', 'https://zh.moegirl.org/index.php?search=');
addSearchAliasX('mw', 'Merriam-Webste', 'https://www.merriam-webster.com/dictionary?s=');
addSearchAliasX('mv', '170mv', 'http://www.170mv.com/so?q=');

addSearchAliasX('pd', '盘多多', 'http://www.panduoduo.net/s/name/');
addSearchAliasX('pm', '盘么么', 'http://www.panmeme.com/query?key=');
addSearchAliasX('pp', '胖次盘', 'https://www.panc.cc/?sears=');
addSearchAliasX('pl', '大力盘', 'https://dalipan.com/search?keyword=');
addSearchAliasX('pw', '微盘搜', 'http://www.vpansou.com/query?wd=');
addSearchAliasX('ph', '好资源PDF', 'http://www.lingocn.com/?s=');

addSearchAliasX('qg', '全国图书馆参考联盟', 'http://book.ucdrs.superlib.net/jsarea.jsp?code=utf-8&channel=search&sw=');
addSearchAliasX('qd', '前端搜索', 'http://jsdig.com/?kw=');
addSearchAliasX('qw', 'Qwant', 'https://www.qwant.com/?q=');

addSearchAliasX('r', '人人词典', 'https://www.91dict.com/words?w=');
addSearchAliasX('rf', '如风搜', 'http://m.rufengso.net/s?k=');

addSearchAliasX('s', 'StackOverflow', 'https://stackoverflow.com/search?q=');
addSearchAliasX('sf', 'Segment_Fault', 'https://segmentfault.com/search?q=');
addSearchAliasX('sw', 'SetAsWall', 'https://www.setaswall.com/category/all-wallpapers/?phrase=');
addSearchAliasX('sb', '书伴', 'https://bookfere.com/?s=');
addSearchAliasX('sc', '诗词', 'http://www.shicimingju.com/chaxun/search?kw=');
addSearchAliasX('ss', '搜磁力', 'https://www.soucili.live/search.html?keywords=');
addSearchAliasX('sr', 'Sunset_Sundown', 'https://www.timeanddate.com/sun/?query=');

addSearchAliasX('t', '淘宝', 'https://s.taobao.com/search?q=');
addSearchAliasX('th', 'ThinBug', 'https://www.thinbug.com/search?wd=');
addSearchAliasX('tg', '图八哥', 'https://tu8ge.xyz/search?q=');
addSearchAliasX('tj', '田间小站', 'https://www.tianfateng.cn/?s=');
addSearchAliasX('ts', '特殊字符', 'https://teshuzi.com/zh/search/?t=');
addSearchAliasX('tk', 'Torrent_Kitty', 'https://www.torrentkitty.tv/search/');
addSearchAliasX('tv', 'Twitter_Video_Downloader', 'https://twsaver.com/twitter.php?url=');
addSearchAliasX('tw', 'Twitter', 'https://twitter.com/search?q=');

addSearchAliasX('v', 'V2ex', 'https://www.google.com/search?q=site:v2ex.com/t%20');
addSearchAliasX('vc', 'VeryCD', 'http://www.verycd.com/search/entries/?kw=');
addSearchAliasX('vf', 'VideoFK', 'https://www.videofk.com/index-video-download/search?url=');

addSearchAliasX('w', 'Wikipedia', 'https://zh.wikipedia.org/wiki/Special:Search?search=');
addSearchAliasX('wb', '微博', 'https://s.weibo.com/weibo/');
addSearchAliasX('wd', 'Wikiwand', 'https://www.wikiwand.com/zh-cn/');
addSearchAliasX('wm', 'WayBackMachine', 'https://web.archive.org/?url=');
addSearchAliasX('ww', '维基词典', 'https://zh.m.wiktionary.org/w/index.php?search=');
addSearchAliasX('wq', '万千合集', 'http://www.hejizhan.com/html/search?keyword=');
addSearchAliasX('wn', '网易云音乐', 'https://music.163.com/#/search/m/?s=');

addSearchAliasX('u', 'YouTube', 'https://www.youtube.com/results?search_query=');
addSearchAliasX('us', 'Youtube_字幕下載器', 'https://www.toolbxs.com/zh-TW/downloader/youtube_subtitle/search?url=');

addSearchAliasX('y', 'Yandex', 'https://yandex.com/search/?msid=1525702989.77274.22860.25478&oprnd=4597554824&text=');
addSearchAliasX('yt', '音悦台', 'http://so.yinyuetai.com/?keyword=');
addSearchAliasX('yv', '音乐语音', 'https://www.midomi.com/index.php?action=main.text_search&type=text&from=main.search&searchTerm=');
addSearchAliasX('yg', '优词词根', 'http://www.youdict.com/root/search?wd=');
addSearchAliasX('yy', '优词词源', 'http://www.youdict.com/ciyuan/s?wd=');

addSearchAliasX('z', '中关村在线', 'http://search.zol.com.cn/s/all.php?keyword=');
addSearchAliasX('zh', '知乎', 'https://www.zhihu.com/search?type=content&q=');
addSearchAliasX('zr', '众人搜索', 'http://www.renrensousuo.com/jieguo/shouye.php?key=');
addSearchAliasX('zw', '专业外语', 'http://www.dictall.com/dictall/result.jsp?cd=UTF-8&keyword=');
addSearchAliasX('zy', '多抓鱼', 'https://www.duozhuayu.com/search/');

// set theme
settings.theme = `
.sk_theme {
font-family: Input Sans Condensed, Charcoal, sans-serif;
font-size: 10pt;
background: #24272e;
color: #abb2bf;
}
.sk_theme tbody {
color: #fff;
}
.sk_theme input {
color: #d0d0d0;
}
.sk_theme .url {
color: #61afef;
}
.sk_theme .annotation {
color: #56b6c2;
}
.sk_theme .omnibar_highlight {
color: #528bff;
}
.sk_theme .omnibar_timestamp {
color: #e5c07b;
}
.sk_theme .omnibar_visitcount {
color: #98c379;
}
.sk_theme #sk_omnibarSearchResult ul li:nth-child(odd) {
background: #303030;
}
.sk_theme #sk_omnibarSearchResult ul li.focused {
background: #3e4452;
}
#sk_status, #sk_find {
font-size: 20pt;
}`;
// click `Save` button to make above settings to take effect.
«Newer      Older»
Comment:
Name:

Back to home

Subscribe | Register | Login | N