Skip to content

Instantly share code, notes, and snippets.

@igrep
Last active June 6, 2023 04:06
Show Gist options
  • Save igrep/be1fb4bc7ffd7f367e48b2c411704118 to your computer and use it in GitHub Desktop.
Save igrep/be1fb4bc7ffd7f367e48b2c411704118 to your computer and use it in GitHub Desktop.
開いているページに対するはてブコメントページを開く(公式の拡張もあるけど、ブックマークするよりコメントを見たいのでこっちの方が個人的にはありがたい)
javascript:(()=>{"use strict";const isHttps="https:"===location.protocol,protocolLength=(isHttps?"https://":"http://").length;window.open("https://b.hatena.ne.jp/entry/"+(isHttps?"s/":"")+location.href.slice(protocolLength))})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment