archive.today 用ブックマークレット(複数リンク用)

archive.today 用ブックマークレット


archive.today にある保存用ブックマークレット

  ftfuhh02s.png
ソース

javascript:void(open('https://archive.today/?run=1&url='+encodeURIComponent(document.location)))

  


■ 複数選択したリンクを archive.today で保存します。
選択したリンクがない場合、今開いているページを保存します。

ソース

javascript:(function(){var%20n_to_open,dl,dll,i;%20function%20linkIsSafe(u)%20{%20if%20(u.substr(0,7)=='mailto:')%20return%20false;%20if%20(u.substr(0,11)=='javascript:')%20return%20false;%20return%20true;%20}%20n_to_open%20=%200;%20dl%20=%20document.links;%20dll%20=%20dl.length;%20if%20(window.getSelection%20&&%20window.getSelection().containsNode)%20{%20/*%20mozilla%20*/%20for(i=0;%20i<dll;%20++i)%20{%20if%20(window.getSelection().containsNode(dl[i],%20true)%20&&%20linkIsSafe(dl[i].href))%20++n_to_open;%20}%20if%20(n_to_open%20>%2010)%20alert%20('選択したリンクが上限(10個)を超えています。'); else%20{if%20(n_to_open%20&&%20confirm('選択した%20'%20+%20n_to_open%20+%20'%20個のリンクを\narchive.today%20に保存します。'))%20{%20for(i=0;%20i<dll;%20++i)%20if%20(window.getSelection().containsNode(dl[i],%20true)%20&&%20linkIsSafe(dl[i].href))%20window.open('https://archive.today/?run=1&url='+encodeURIComponent(dl[i].href));%20}%20}%20}%20/*%20/mozilla%20*/%20if%20(!n_to_open)%20window.open('https://archive.today/?run=1&url='+encodeURIComponent(document.location));%20})();

ショートカットを作り「手入力」で登録してください。




■ archive.today 検索用ブックマークレット
ソース

javascript:void(open('https://archive.today/'+encodeURIComponent(document.location)))

ショートカットを作り「手入力」で登録してください。




関連記事
プロフィール

Author:zubolla
  
あ~
めんどくちゃい めんどくちゃい

全記事表示リンク

全ての記事を表示する

カテゴリ
検索フォーム