Created
July 17, 2024 02:51
-
-
Save jshwlkr/fb9e26c82da8185e07d4607d610dc614 to your computer and use it in GitHub Desktop.
This opens a new tab and searches the English Wikipedia for the selected text on the current page. If you’ve selected no text, it goes to the Wikipedia home page. Source: https://lmnt.me/blog/two-bookmarklets.html
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
javascript:(function(){var selectedText=window.getSelection().toString().trim();var searchUrl=selectedText?'https://en.wikipedia.org/wiki/Special:Search?search='+encodeURIComponent(selectedText):'https://en.wikipedia.org/wiki/Main_Page';window.open(searchUrl,'_blank');})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment