Last active
April 15, 2024 01:47
-
-
Save jareha/9009d11e344167014b0de568f41ab577 to your computer and use it in GitHub Desktop.
Bookmarklet to show entries from Green’s Dictionary of Slang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* jshint esversion: 8 */ | |
(function () { | |
const fallback = null; | |
const keyword = "%s"; | |
const service = "https://greensdictofslang.com/"; | |
if (keyword !== "" || keyword !== "%" + "s") { | |
window.location = `${service}search/basic?q=${keyword}`; | |
} else { | |
window.location = fallback || service; | |
} | |
})(); | |
// javascript:(function(){const fallback=null;const keyword="%s";const service="https://greensdictofslang.com/";if(keyword!==""||keyword!=="%s"){window.location=`${ service }search/basic?q=${ keyword }`}else{window.location=fallback||service}})(); | |
// Minified at https://duckduckgo.com/?q=javascript+minifier |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment