-
Notifications
You must be signed in to change notification settings - Fork 2
/
how-to-use.html
2 lines (2 loc) · 1.29 KB
/
how-to-use.html
1
2
<a href='javascript:(()=>{function e(e){return document.getElementsByClassName(e)}try{delete window.ytInitialPlayerResponse.auxiliaryUi,window.ytplayer.bootstrapPlayerResponse=window.ytInitialPlayerResponse}catch(e){}document.getElementById("logo-icon").removeAttribute("hidden");let t=document.getElementsByTagName("video")[0].playbackRate;if(!window.skipAdInterval){console.log("started"),window.skipAdInterval=setInterval((function(){0!=e("ytp-ad-player-overlay-layout").length?(document.getElementsByTagName(%22video%22)[0].currentTime=document.getElementsByTagName(%22video%22)[0].duration,document.getElementsByTagName(%22video%22)[0].playbackRate=16):document.getElementsByTagName(%22video%22)[0].playbackRate=t,null!=e(%22ytp-skip-ad-button%22)[0]&&e(%22ytp-skip-ad-button%22)[0].click()}),100),document.addEventListener(%22keydown%22,(function(e){107==e.keyCode||187==e.keyCode?document.getElementsByTagName(%22video%22)[0].playbackRate+=.25:109!=e.keyCode&&189!=e.keyCode||(document.getElementsByTagName(%22video%22)[0].playbackRate-=.25),t=document.getElementsByTagName(%22video%22)[0].playbackRate,document.getElementById(%22logo-icon%22).innerHTML=document.getElementsByTagName(%22video%22)[0].playbackRate+%22%20x%22}))}})()' onclick="alert('drag me to bookmark')">Skip Ad</a>
<p>drag this link to bookmark</p>