2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

現在のページにjQuery(3.2.1)を追加するブックマークレット

Last updated at Posted at 2017-11-02

jQueryを使用したオリジナルJSを動かしたいときとかに活躍するかもしれないです。
動きとしてはそのページの<title>タグ直下に<script>タグを追加しています。

javascript:ga=document.createElement('script');ga.type = 'text/javascript';ga.src='//ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js';s=document.getElementsByTagName('title')[0];s.parentNode.insertBefore(ga,s.nextSibling);

アドレス部分を変えたら読み込むjsとか変えられるかなと・・・。
(Chromeとかだと一回適当にブックマークを保存してから編集でコピペしたら行けるかと思います。)

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?