Skip to content

Instantly share code, notes, and snippets.

View luckycdev's full-sized avatar
🥶
hi

lucky luckycdev

🥶
hi
View GitHub Profile
@luckycdev
luckycdev / bookmarklet-eclipse-iframe.js
Created August 31, 2022 16:24
Bookmarklet to play eclipse emulator in your current tab in a corner
javascript:((function()%7Bvar a,b,c;c="https://eclipseemu.me/play",b=document.createElement("iframe"),b.setAttribute("src",c),b.setAttribute("id","eclipse"),b.setAttribute("style","width: 30%; height: 30%; right:0px; bottom:0px; border:none; position:fixed;z-index:20; overflow:hidden;"),b.setAttribute("mozallowfullscreen","true"),b.setAttribute("allow","autoplay,autoplay; fullscreen *; geolocation; microphone; camera; midi; monetization; xr-spatial-tracking; gamepad; gyroscope; accelerometer; xr"),b.setAttribute("frameborder","0"),b.setAttribute("msallowfullscreen","true"),b.setAttribute("scrolling","yes"),b.setAttribute("allowfullscreen","true"),b.setAttribute("webkitallowfullscreen","true"),b.setAttribute("allowtransparency","true"),a=document.getElementsByTagName("body")%5B0%5D,a.appendChild(b)%7D)).call(this);var btn=document.createElement("button");document.body.appendChild(btn);btn.innerHTML="Close";btn.setAttribute("style","position:absolute;right:0px;bottom:200px;");btn.onclick=function(){document.get
@luckycdev
luckycdev / bookmarklet-unblock-youtube-with-invidious-plus-timestamp.js
Last active November 21, 2022 15:53
Unblock youtube with invidious including timestamp - easily changeable invidious link
javascript:function unblockYoutubeWithTime(){var a="https://yewtu.be/";var b=document.getElementById("movie_player");var c=b.getCurrentTime();var d="?t="+parseInt(c);var e=location.replace(a+location.search.split("v=")[1].split("&")[0]+d);}if(location.hostname==="www.youtube.com"){if (parseInt(c) === 0){location.replace(a+location.pathname);}else{unblockYoutubeWithTime();}}else if(location.hostname==="youtu.be"){if (parseInt(c) === 0){location.replace(a+location.pathname);}else{unblockYoutubeWithTime();}}else if(location.hostname==="www.youtube-nocookie.com"){if (parseInt(c) === 0){location.replace(a+location.pathname);}else{unblockYoutubeWithTime();}}else{alert("not on youtube");}
@luckycdev
luckycdev / bookmarklet-copy-youtube-video-time.js
Created May 10, 2022 16:32
Bookmarklet to copy the current video url with current time into the video.
javascript:function copyYoutubeTime(){var a=document.getElementById("movie_player");var b=a.getCurrentTime();var c="https://youtu.be/";var d="?t="+parseInt(b);var e=c+location.search.split("v=")[1].split("&")+d;var f=document.createElement("textarea");document.body.appendChild(f);f.value=e;f.select();document.execCommand("copy");document.body.removeChild(f);alert("copied "+e+" !");}if(location.hostname==="www.youtube.com"){copyYoutubeTime();}else if(location.hostname==="youtu.be"){copyYoutubeTime();}else if(location.hostname==="www.youtube-nocookie.com"){copyYoutubeTime();}else{alert("not on youtube");}
@luckycdev
luckycdev / bookmarklet-return-youtube-dislikes.js
Last active July 15, 2022 19:35
show youtube dislikes with a bookmarklet / youtube dislikes bookmarklet
javascript:var a="https://returnyoutubedislikeapi.com/votes?videoId=";var b=location.search.split("v=")[1].split("&")[0];if(location.hostname==="www.youtube.com"){open(a+b);}else if(location.hostname==="youtu.be"){open(a+b);}else if(location.hostname==="www.youtube-nocookie.com"){open(a+b);}
@luckycdev
luckycdev / bookmarklet-google-translate.js
Created May 3, 2022 15:48
google translate bookmarklet - translate a page with a bookmarklet
javascript:var a="https://translate.google.com/translate?u=";var b=encodeURI(location.href);var c="?tl=en";open(a+b+c);
@luckycdev
luckycdev / bookmarklet-google-video-search.js
Created April 28, 2022 18:02
bookmarklet to search google images with a keyword
javascript:var a="https://www.google.com/search?q=";var b=prompt("What would you like to search in images for?", "pewdiepie");var c="&tbm=vid";if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null){open(a+b+c);}
@luckycdev
luckycdev / bookmarklet-spotify-search.js
Created April 28, 2022 15:26
spotify search bookmarklet - spotify bookmarklet
javascript:var a="https://open.spotify.com/search/";var b=prompt("what song would you like to search for on Spotify?","Juice WRLD");if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null){open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-lookup-domains-namecom.js
Last active April 29, 2022 15:25
lookup domains and their prices using name.com with a bookmarklet
javascript:var a="https://www.name.com/domain/search/";var b=prompt("What domain would you like to lookup?\nPlease do not include http:// or https://", "example.com");if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b);}
@luckycdev
luckycdev / bookmarklet-whois-lookup.js
Created April 28, 2022 02:13
lookup info about the website you are on with who.is
javascript:var a="https://who.is/whois/";var b=location.host;var c=confirm("Are you sure you want to leave this site? You will lookup "+b);if(c!=false){open(a+b);}
@luckycdev
luckycdev / bookmarklet-tineye-reverse-image-search.js
Created April 28, 2022 02:03
bookmarklet to reverse image search using tineye on the current tab
javascript:var a="https://tineye.com/search?url=";var b=location.href;var c=confirm("Are you sure you would like to reverse image search this?\nMake sure the url ends in a image file such as .png .jpg .gif etc.\nTo get this right click on the image and press Open image in new tab");if(c!=false){open(a+b);}