Skip to content

Instantly share code, notes, and snippets.

@pazworld
Last active February 26, 2024 09:55
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pazworld/eaa87501687aff7177ae15a9bdff3bd8 to your computer and use it in GitHub Desktop.
Save pazworld/eaa87501687aff7177ae15a9bdff3bd8 to your computer and use it in GitHub Desktop.
Bookmarklet search for the Evernote contents (for beta web editor environment)

Description

Bookmarklet search for the Evernote contents. This is for "beta web editor", you must switch to beta editor previously.

Bookmarklet Code

javascript:(function(){var o=' notebook:"my notebook"',s=window.prompt("Search for Evernote"),u;if(!s)return;u="https://www.evernote.com/client/web#?query="+s+o;location.href=encodeURI(u);})();

o=' notebook:"my notebook"' is search option for search for the specific notebook. You can also specify other options. If you don't need it, set o=''.

Source Code

javascript:
(function(){
  var o=' notebook:"my notebook"',
      s=window.prompt("Search for Evernote"),
      u;
  if(!s)return;
  u="https://www.evernote.com/client/web#?query="+s+o;
  location.href=encodeURI(u);
})();

Below is a message in Japanese.

説明

Evernoteのノートを検索するブックマークレットです。 「ベータ版エディタ」用のURLで表示しますので、ベータ版エディタに切り替えていることが前提です。

コード(ブックマークレット)

javascript:(function(){var o=' notebook:"pazworld のノートブック"',s=window.prompt("検索文字列を入力してください。"),u;if(!s)return;u="https://www.evernote.com/client/web#?query="+s+o;location.href=encodeURI(u);})();

o=' notebook:"pazworld のノートブック"' の部分は検索するノートブックを限定する検索オプションです。 他のオプションも指定できます。 ノートブックの限定が不要な場合には o='' と記述してください。

コード(複数行ソース)

javascript:
(function(){
  var o=' notebook:"pazworld のノートブック"',
      s=window.prompt("検索文字列を入力してください。"),
      u;
  if(!s)return;
  u="https://www.evernote.com/client/web#?query="+s+o;
  location.href=encodeURI(u);
})();
javascript:(function(){var o=' notebook:"my notebook"',s=window.prompt("Search for Evernote"),u;if(!s)return;u="https://www.evernote.com/client/web#?query="+s+o;location.href=encodeURI(u);})();
javascript:(function(){var o=' notebook:"pazworld のノートブック"',s=window.prompt("検索文字列を入力してください。"),u;if(!s)return;u="https://www.evernote.com/client/web#?query="+s+o;location.href=encodeURI(u);})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment