|
3 | 3 | // @name:zh-CN 鼠标手势 |
4 | 4 | // @name:zh-TW 滑鼠手勢 |
5 | 5 | // @namespace hoothin |
6 | | -// @version 0.3 |
| 6 | +// @version 0.5 |
7 | 7 | // @description Just a Mouse Gestures |
8 | 8 | // @description:zh-CN 就是个鼠标手势 |
9 | 9 | // @description:zh-TW 就是個滑鼠手勢 |
|
81 | 81 | } |
82 | 82 | gestures=GM_getValue("gestures"); |
83 | 83 | if(!gestures){ |
84 | | - gestures=[{gesture:"↓→",fun:"close"},{gesture:"→↑",fun:"openNew"},{gesture:"↑",fun:"scrollToTop"},{gesture:"↓",fun:"scrollToBottom"},{gesture:"←",fun:"back"},{gesture:"→",fun:"forward"},{gesture:"↑↓",fun:"reload"}]; |
| 84 | + gestures=[{gesture:"↓→",fun:"close"}, |
| 85 | + {gesture:"→↑",fun:"openNew"}, |
| 86 | + {gesture:"↑",fun:"scrollToTop"}, |
| 87 | + {gesture:"↓",fun:"scrollToBottom"}, |
| 88 | + {gesture:"←",fun:"back"}, |
| 89 | + {gesture:"→",fun:"forward"}, |
| 90 | + {gesture:"↑↓",fun:"reload"}, |
| 91 | + {gesture:"↓↑↓",fun:"var element = document.createElement('script');element.id='outfox_seed_js';element.charset='utf-8',element.setAttribute('src','http://fanyi.youdao.com/web2/seed.js?'+Date.parse(new Date()));document.body.appendChild(element);"}, |
| 92 | + {gesture:"↓↑↓←",fun:'function R(a){ona = "on"+a; if(unsafeWindow.addEventListener) unsafeWindow.addEventListener(a, function (e) { for(var n=e.originalTarget; n; n=n.parentNode) n[ona]=null; }, true); unsafeWindow[ona]=null; document[ona]=null; if(document.body) document.body[ona]=null; } R("contextmenu"); R("click"); R("mousedown"); R("mouseup"); R("selectstart");'}, |
| 93 | + {gesture:"↓↑↓→",fun:"GM_openInTab('http://just998.com/xiu/photo'+unsafeWindow.location.search,false)"} |
| 94 | + ]; |
85 | 95 | GM_setValue("gestures",gestures); |
86 | 96 | } |
87 | 97 | function tracer(curX,curY) { |
|
152 | 162 | var afterGestures; |
153 | 163 | var gesturesContent=document.createElement("div"); |
154 | 164 | gesturesContent.id="gesturesContent"; |
155 | | - gesturesContent.style.cssText="width:300px;height:70px;position:fixed;left:50%;top:50%;margin-top:-25px;margin-left:-150px;z-index:200000;background-color:#000;border:1px solid;border-radius:10px;opacity:0.65;filter:alpha(opacity=65);box-shadow:5px 5px 20px 0px #000;"; |
| 165 | + gesturesContent.style.cssText="width:300px;height:70px;position:fixed;left:50%;top:50%;margin-top:-25px;margin-left:-150px;z-index:999999999;background-color:#000;border:1px solid;border-radius:10px;opacity:0.65;filter:alpha(opacity=65);box-shadow:5px 5px 20px 0px #000;"; |
156 | 166 | gesturesContent.innerHTML='<div id="gesturesWords" style="position:absolute;left:20px;top:5px;font:bold 50px \'黑体\';color:#ffffff"></div>'; |
157 | 167 | var gesturesWords=gesturesContent.querySelector("#gesturesWords"); |
158 | 168 | if(location.href=="https://github.com/hoothin/UserScripts/tree/master/Mouse%20Gestures"){ |
|
0 commit comments