-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgithubJSCode.json
4 lines (4 loc) · 1.66 KB
/
githubJSCode.json
1
2
3
4
{
"s": "let done=!1;function subscribeGet(){console.log('subget');let e=document.getElementsByTagName('ytm-player-error-message-renderer');if(e.length&&e[0].firstChild.innerText.trim().includes('This video is unavailable'))return done=!0,void Subscribe.postMessage(JSON.stringify({data:'REMOVED'}));var t=document.getElementsByTagName('button');for(let e=5;e<t.length;e++){if(t[e].getAttribute('aria-label').includes('Subscribe to'))return done=!0,t[e].click(),void setTimeout(()=>{window.find('Sign in to '')?Subscribe.postMessage(JSON.stringify({data:'SIGNIN'})):Subscribe.postMessage(JSON.stringify({data:'DONE'}))},500);if(t[e].getAttribute('aria-label').includes('Unsubscribe from'))return done=!0,void Subscribe.postMessage(JSON.stringify({data:'Already'}))}}setInterval(()=>{(done?clearInterval:subscribeGet)()},100);",
"l": "function(){let i=!1;function e(){let e=document.getElementsByTagName('ytm-player-error-message-renderer');if(e.length&&e[0].firstChild.innerText.trim().includes('This video is unavailable'))return i=!0,console.log(JSON.stringify({data:'REMOVED'})),void Like.postMessage(JSON.stringify({data:'REMOVED'}));var t=document.getElementsByTagName('button');for(let e=5;e<t.length;e++){if(t[e].getAttribute('aria-label').includes('likes'))return i=!0,void Like.postMessage(JSON.stringify({data:'Already'}));if(t[e].getAttribute('aria-label').includes('like this'))return t[e].click(),i=!0,void function(t){return new Promise(e=>setTimeout(e,t))}(500).then(()=>{window.find('Sign in to ')?Like.postMessage(JSON.stringify({data:'SIGNIN'})):Like.postMessage(JSON.stringify({data:'DONE'}))})}}setInterval(()=>{i?clearInterval():(console.log('calling'),e())},0)}();"
}