Skip to content

Instantly share code, notes, and snippets.

View luckycdev's full-sized avatar
🥶
hi

vincent luckycdev

🥶
hi
View GitHub Profile
@luckycdev
luckycdev / bookmarklet-google-search.js
Last active April 27, 2022 17:12
search using Google with a bookmarklet - easily changeable - google search bookmarklet
javascript:var a="https://google.com/search?q="; var b=prompt("What would you like to search on Google?", "Search"); if(b===""){alert("invalid response");}else if (b===" "){alert("invalid response");} else if (b!=null){open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-calculator.js
Created April 27, 2022 02:32
simple js calculator using prompt
javascript:var a=prompt("Equation\n+ for addition - for subtraction * for multiplication / for division\nno variable support", "1+1");var b=eval(a);var c=alert(b);
@luckycdev
luckycdev / bookmarklet-reddit-search.js
Created April 27, 2022 15:42
Search reddit with default search, users only, or subreddits only
javascript:var a="https://www.reddit.com/search/?q="; var b=prompt("What would you like to search on Reddit?"); if (b==="") {alert("invalid response");} else if (b!=null) {var c=confirm("Would you like to search specifically in subreddits or users?\nCancel for general search, OK for yes"); if (c==true) {var d=confirm("Cancel for users search, OK for subreddits search");if (d==true) {open(a+encodeURI(b)+"&type=sr");} else {open(a+encodeURI(b)+"&type=user");}} else {open(a+encodeURI(b));}}
@luckycdev
luckycdev / bookmarklet-tinyurl-shorten.js
Created April 28, 2022 00:47
(not that good) tinyurl link shortener bookmarklet
javascript:var a="https://tinyurl.com/create.php?url=";var b=location.host;var c=location.pathname+location.search;if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+b+c);}
@luckycdev
luckycdev / bookmarklet-google-image-search.js
Created April 28, 2022 01:39
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?", "memes");var c="&tbm=isch";if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null){open(a+b+c);}
@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);}
@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-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-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-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);}