Sleazy Fork is available in English.

Pornhub 滑鼠隱藏

電腦端滑鼠於影片區塊上停留一段時間,會隱藏滑鼠遊標和進度條,滑鼠再次移動時將重新顯示,手機端在影片區塊向右滑,會觸發影片加速,滑越多加越多最高16倍,放開後恢復正常速度。

// ==UserScript==
// @name         Pornhub 滑鼠隱藏
// @name:zh-TW   Pornhub 滑鼠隱藏
// @name:zh-CN   Pornhub 鼠标隐藏
// @name:en      Pornhub Mouse Hide
// @name:ja      Pornhub マウス非表示
// @name:ko      Pornhub 마우스 숨기기
// @version      0.0.6
// @author       HentaiSaru

// @description         電腦端滑鼠於影片區塊上停留一段時間,會隱藏滑鼠遊標和進度條,滑鼠再次移動時將重新顯示,手機端在影片區塊向右滑,會觸發影片加速,滑越多加越多最高16倍,放開後恢復正常速度。
// @description:zh-TW   電腦端滑鼠於影片區塊上停留一段時間,會隱藏滑鼠遊標和進度條,滑鼠再次移動時將重新顯示,手機端在影片區塊向右滑,會觸發影片加速,滑越多加越多最高16倍,放開後恢復正常速度。
// @description:zh-CN   电脑端在观看视频时,鼠标停留在视频区域一段时间后,鼠标指针和进度条会被隐藏。当鼠标再次移动时,它们将重新显示。手机端观看视频时,在视频区域向右滑动手指会触发视频加速,滑动越多,加速效果越明显,最高可达16倍。释放手指后,视频将恢复正常速度。
// @description:en      On desktop, when the mouse hovers over the video for a while, the mouse cursor and progress bar will disappear. They will reappear when the mouse moves again. On mobile, swiping right in the video area triggers video acceleration, with more swipes resulting in faster acceleration, up to 16 times. Releasing the finger restores normal playback speed.
// @description:ja      デスクトップでは、マウスが動畫上にしばらく停止すると、マウスカーソルと進行バーが非表示になります。マウスが再度移動すると再表示されます。モバイル端末では、動畫エリアで右にスワイプすると、動畫の加速がトリガーされます。より多くスワイプすると、最大16倍までの加速が得られます。指を離すと、通常の再生速度に戻ります。
// @description:ko      데스크톱에서 비디오를 시청할 때 마우스가 비디오 위에 일정 시간 머물면 마우스 커서와 진행 막대가 숨겨집니다. 마우스가 다시 움직일 때 다시 나타납니다. 휴대폰에서 비디오 영역에서 오른쪽으로 스와이프하면 비디오가 가속됩니다. 스와이프할수록 더 빠른 가속이 발생하며 최대 16 배까지 가능합니다. 손가락을 놓으면 일반 재생 속도로 돌아갑니다.

// @match        *://*.pornhub.com/view_video.php?viewkey=*
// @match        *://*.pornhubpremium.com/view_video.php?viewkey=*
// @icon         https://ei.phncdn.com/www-static/favicon.ico

// @run-at       document-start

// @license      MIT
// @namespace    https://greasyfork.org/users/989635
// ==/UserScript==
(new class{constructor(){this.StyalRules=null,this.ListenerRecord={},this.display=async(e,t)=>{requestAnimationFrame(()=>{this.StyalRules[0].style.setProperty("cursor",e,"important"),this.StyalRules[1].style.setProperty("display",t,"important")})},this.Device={sY:()=>window.scrollY,Width:()=>window.innerWidth,Height:()=>window.innerHeight,Agent:()=>navigator.userAgent,_Type:void 0,Type:()=>this.Device._Type=this.Device._Type||(this.Device._Type=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(this.Device.Agent())||this.Device.Width()<768?"Mobile":"Desktop")},this.throttle=(i,s)=>{let n=0;return(...e)=>{var t=Date.now();t-n>=s&&(n=t,i(...e))}},this.FindObjects="Desktop"!=this.Device.Type()&&"Mobile"==this.Device.Type()?".mgp_videoWrapper":".video-wrapper div"}async AddListener(e,t,i,s={}){this.ListenerRecord[e]?.[t]||(e.addEventListener(t,i,s),this.ListenerRecord[e]||(this.ListenerRecord[e]={}),this.ListenerRecord[e][t]=i)}async RemovListener(e,t){var i=this.ListenerRecord[e]?.[t];i&&(e.removeEventListener(t,i),delete this.ListenerRecord[e][t])}async WaitMap(e,t,i,{object:s=document,throttle:n=0}={}){let o,d;const c=new MutationObserver(this.throttle(()=>{(d=e.map(e=>document.querySelector(e))).every(e=>null!=e)&&(c.disconnect(),clearTimeout(o),i(d))},n));c.observe(s,{childList:!0,subtree:!0}),o=setTimeout(()=>{c.disconnect(),console.log("%s","Injection Failed")},1e3*t)}async AddStyle(e,t="New-Style"){var i=document.createElement("style");i.id=t,document.head.appendChild(i),i.appendChild(document.createTextNode(e))}async Injection(){let c=this,n=c.Device.Type(),o;c.WaitMap([c.FindObjects,"video.mgp_videoElement","div[class*='mgp_progress']"],10,e=>{const[t,d,i]=e;if("Desktop"==n){async function s(){clearTimeout(o),c.display("default","block"),o=setTimeout(()=>{c.display("none","none")},2100)}console.log("%s","Hidden Injection Successful"),c.AddStyle("body {cursor: default;}.Hidden {display: block;}","Mouse-Hide"),c.StyalRules=document.getElementById("Mouse-Hide").sheet.cssRules,i.parentNode.classList.add("Hidden"),c.AddListener(t,"pointerleave",()=>{c.display("default","block"),clearTimeout(o)},{passive:!0}),c.AddListener(t,"pointermove",c.throttle(()=>{s()},200),{passive:!0}),c.AddListener(t,"pointerdown",()=>{s()},{passive:!0})}else if("Mobile"==n){console.log("%s","Accelerate Injection Successfully");let i,s,n,o=d.playbackRate;c.AddListener(t,"touchstart",e=>{i=.2*c.Device.Width(),s=e.touches[0].clientX},{passive:!0}),c.AddListener(t,"touchmove",c.throttle(t=>{requestAnimationFrame(()=>{var e;(n=t.touches[0].clientX-s)>i&&(e=(n-i)/3,e=(o+.3*e).toPrecision(2),d.playbackRate=Math.min(e,16))})},200),{passive:!0}),c.AddListener(t,"touchend",()=>{d.playbackRate=o},{passive:!0})}else console.log("%s","Injection Failed")},{throttle:300})}}).Injection();