[toc]
常用小书签(bookmarklet)
视频倍速播放
使用场景:视频倍速
说明:点击一次,产生相应的倍速;再次点击,视频速度为1;可设置倍速10以上,用于提取视频流
可选倍速
代码可选项:speed
1 2 3 4 5 6 7 8 9 10 11 12 13 javascript:(function ( ) { var speed = 2 ; var videos = document .querySelectorAll('video' ); for (var video of videos) { var playspeed = video.playbackRate; if (playspeed != speed){ video.playbackRate = speed; } else if (playspeed == speed){ video.playbackRate = 1 ; } } })();
浏览器分屏
使用场景:快速将浏览器分页(例如:浏览题目和答案)
说明:点击一次出现水平或垂直分页,有些网站可能出现拒绝访问的现象
快速可选
1 2 3 4 5 6 7 8 9 10 11 javascript:document .write('%3CHTML%3E%3CHEAD%3E%3C/HEAD%3E%3CFRAMESET%20COLS=\'50%25,*\'%3E%3CFRAME%20SRC=' %20 +%20 location.href%20 +%20 '%3E%3CFRAME%20SRC=' %20 +%20 location.href%20 +%20 '%3E%3C/FRAMESET%3E%3C/HTML%3E' ) javascript:(function (w,d ) {var %20 href=location.href;var %20 website=w.prompt('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%BD%91%E5%9D%80' ,'http://' )||href;d.write('<HTML><HEAD></HEAD><FRAMESET%20COLS=\'50%,*\'><FRAME%20SRC=' +location.href+'><FRAME%20SRC=' +website+'></FRAMESET></HTML>' );})(window ,document ) javascript:document .write('%3CHTML%3E%3CHEAD%3E%3C/HEAD%3E%3CFRAMESET%20ROWS=\'50%25,*\'%3E%3CFRAME%20SRC=' %20 +%20 location.href%20 +%20 '%3E%3CFRAME%20SRC=' %20 +%20 location.href%20 +%20 '%3E%3C/FRAMESET%3E%3C/HTML%3E' ) javascript:(function (w,d ) {var %20 href=location.href;var %20 website=w.prompt('%E8%AF%B7%E8%BE%93%E5%85%A5%E7%BD%91%E5%9D%80' ,'http://' )||href;d.write('<HTML><HEAD></HEAD><FRAMESET%20ROWS=\'50%,*\'><FRAME%20SRC=' +location.href+'><FRAME%20SRC=' +website+'></FRAMESET></HTML>' );})(window ,document )
彩云中英文对照全文翻译
使用场景:快速中英文浏览
说明:快速进行翻译
快速可选
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 javascript: void ( (function ( ) { if (!document .body) { return } var popup = document .querySelectorAll('.cyxy-target-popup' ); if (popup && popup.length > 0 ) { return } try { var trs = document .createElement('script' ); trs.type = 'text/javascript' ; trs.charset = 'UTF-8' ; trs.src = ('https:' == document .location.protocol ? 'https://' : 'http://' ) + 'caiyunapp.com/dest/trs.js' ; document .body.appendChild(trs); } catch (e) { alert(e); } document .addEventListener('securitypolicyviolation' , function handler (e ) { console .error('securitypolicyviolation' , e); alert('由于当前网站的内容安全策略(Content Security Policy),小译无法启动翻译程序,您可以在Chrome Web商店搜索彩云小译(LingoCloud)下载插件,或者将网页保存在本地(右键 -> 另存为)进行翻译,也欢迎您在手机应用商店下载彩云小译App :)' ); document .removeEventListener('securitypolicyviolation' , handler); });})() );
查看源代码
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 javascript:(function ( ) { var w = window .open('about:blank' ), d = w.document; d.write('' ); d.close(); var f = d.createElement('form' ); f.setAttribute('method' ,'post' ); f.setAttribute('action' ,'https://ole.michelsen.dk/viewsource/?uri=' +encodeURIComponent (location.href)); var i = d.createElement('input' ); i.setAttribute('type' ,'hidden' ); i.setAttribute('name' ,'DOM' ); i.setAttribute('value' ,encodeURIComponent (document .documentElement.innerHTML)); d.body.appendChild(f).appendChild(i); f.submit(); })();
微信文章音频快速提取源地址
使用场景:微信文章的音频快速识别源地址
说明:微信文章音频快速提取源地址
快速可选
1 2 3 4 javascript:(function ( ) { var f = document .getElementsByTagName('mpvoice' )[0 ].getAttribute('voice_encode_fileid' ); window .open('https://res.wx.qq.com/voice/getvoice?mediaid=' f,'_blank' ); })();
Coursera中英文字幕
使用场景:Coursera中英文字幕
说明:Coursera中英文字幕,必须有中英文字母同时存在时生效
快速可选
1 2 3 4 5 6 javascript:(function ( ) { var myvideo = document .getElementsByTagName('video' )[0 ]; for (var i = 0 ; i < myvideo.textTracks.length; i++) { ["en" , "zh-CN" ].indexOf(myvideo.textTracks[i].language) > -1 ? myvideo.textTracks[i].mode = "showing" : myvideo.textTracks[i].mode = "hidden" ; } })();
本文作者 : 幻华(Zkher)
本文使用 署名-非商业性使用-相同方式共享 4.0 国际 (CC BY-NC-SA 4.0) 协议
本文链接 : http://www.zkhweb.top/2020/05/01/bookmarklet/bookmarklet/
本文最后更新于 天前,文中所描述的信息可能已发生改变