Bookmark which uses clipboard text as search term? #89
Unanswered
letmeindude
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi. If you search with the normal search engine without selecting a string, the search will be performed with the contents of the clipboard.
If you use the Bookmarklet API, it will look like this: javascript:spc.clipboard.readText().then(c => spc.spc.openURL( {url: "https://www.imdb.com/find/?q=" + encodeURIComponent(c.trim())} )); Best regards |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is it possible to make a Bookmark which will use clipboard content as search term?
In Pale Moon browser I use XUL extension which allows special bookmarks like:
https://www.imdb.com/find/?q={clipTerms}
Is this possible with SPC and Bookmarklet API?
I know I need to use spc.clipboard, but I'm not sure how.
P.S. Amazing extension, thank you very much.
Environment:
OS [Windows 10]
Browser [Firefox 124.0.2]
Extension Version [8.1]
Beta Was this translation helpful? Give feedback.
All reactions