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-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-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-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-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-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-stackoverflow-search.js
Last active April 27, 2022 18:07
search using stackoverflow with a bookmarklet - easily changeable - stackoverflow search bookmarklet
javascript:var a="https://stackoverflow.com/search?q="; var b=prompt("What would you like to search on stackoverflow?", "How to..."); if(b===""){alert("invalid response");}else if (b===" "){alert("invalid response");} else if (b!=null){open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-search-duckduckgo.js
Last active April 27, 2022 18:08
search using duckduckgo with a bookmarklet - easily changeable - duckduckgo search bookmarklet
javascript:var a="https://duckduckgo.com/?q="; var b=prompt("What would you like to search on duckduckgo?", "Search"); if(b===""){alert("invalid response");}else if (b===" "){alert("invalid response");}else if (b!=null){open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-searx-search.js
Last active April 27, 2022 18:31
search using searx with a bookmarklet - easily changeable - searx search bookmarklet
javascript:var a="https://searx.puffyan.us/search?q="; var b=prompt("What would you like to search on searx?", "Search"); if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response")}else if(b!=null) {open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-gogoanime-search.js
Last active April 27, 2022 18:29
search for an anime on gogoanime with a bookmarklet - easily changeable - gogoanime bookmarklet
javascript:var a="https://gogoanime.be/search/?keyword="; var b=prompt("What anime would you like to watch today?", "Naruto"); if(b===""){alert("invalid response");}else if(b===" "){alert("invalid response");}else if(b!=null) {open(a+encodeURI(b));}
@luckycdev
luckycdev / bookmarklet-myflixer-search.js
Last active April 27, 2022 17:08
search for a show/movie on myflixer with a bookmarklet - easily changeable - myflixer bookmarklet
javascript:var a="https://myflixer.pw/search/";var b=prompt("What show/movie would you like to watch today?", "Lucifer");if (b===""){alert("invalid response");}else if (b===" "){alert("invalid response");} else if(b!=null){open(a+b);}