LoginSignup
1
1

More than 3 years have passed since last update.

ブックマークレットメモ

Last updated at Posted at 2018-12-11

設定内容

自分用メモ。
※随時更新中

画像の表示/非表示

画像の表示/非表示.js
javascript:void(
   (function() {
      var d = document;
      if (!d.getElementById('css-add-on')) {
         var s = d.createElement('style');
         s.id = 'css-add-on';
         s.innerHTML = 
            '*{
                 color:#333333 !important;
                 background:#FFFFFF !important;
              }
             img, embed, iframe, object {
                 display:none !important;
              };'
         d.body.appendChild(s);
      } else {
         var s = d.getElementById('css-add-on');
         d.body.removeChild(s);
      }
   })()
);
ブックマークレット形式.js
javascript:void((function(){var d=document;if(!d.getElementById('css-add-on')){var s=d.createElement('style');s.id='css-add-on';s.innerHTML='*%7bcolor%3a#333333 !important%3bbackground%3a#FFFFFF !important%3b%7dimg,embed,iframe,object%7bdisplay%3anone !important%3b%7d';d.body.appendChild(s);}else{var s=d.getElementById('css-add-on');d.body.removeChild(s);}})());

背景白

背景白.js
javascript:void(
   document.bgColor = '#FFFFFF'
)
ブックマークレット形式.js
javascript:void(document.bgColor='#FFFFFF')

背景画像を削除

背景画像を削除.js
javascript:void(
   document.body.background=''
)
ブックマークレット形式.js
javascript:void(document.body.background='')

パスワード表示

パスワード表示.js
javascript:(
   function() {
      var s, F, j, f, i;
      s = '';
      F = document.forms;
      for (j = 0; j < F.length; ++j) {
         f = F[j];
         for (i = 0; i < f.length; ++i) {
            if (f[i].type.toLowerCase() == 'password') {
               s += f[i].value + '\n';
            }
         }
      }
      if (s) {
         alert('このページ上のパスワード:\n\n' + s);
      } else {
         alert('このページにはパスワードはありません');
      }
   }
)();
ブックマークレット形式.js
javascript:(function(){var s,F,j,f,i;s='';F=document.forms;for(j=0;j<F.length;++j){f=F[j];for(i=0;i<f.length;++i){if(f[i].type.toLowerCase()=='password') s+=f[i].value+'%EF%BC%BCn';}}if(s)alert('%E3%81%93%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E4%B8%8A%E3%81%AE%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89:%EF%BC%BCn%EF%BC%BCn'+s);else alert('%E3%81%93%E3%81%AE%E3%83%9A%E3%83%BC%E3%82%B8%E3%81%AB%E3%81%AF%E3%83%91%E3%82%B9%E3%83%AF%E3%83%BC%E3%83%89%E3%81%AF%E3%81%82%E3%82%8A%E3%81%BE%E3%81%9B%E3%82%93');})();

PlainText表示

PlainText表示.js
javascript:(
   function() {
      var  w = window.open();
      w.document.open();
      w.document.write(
         '<html><body>' +
             document.body.innerText 
         '</body></html>'
      );
      w.document.close();
   }
)()
ブックマークレット形式.js
javascript:(function(){var w=window.open();w.document.open();w.document.write('<html><body>'+document.body.innerText+'</body></html>');w.document.close();})()
1
1
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
1
1