img fitter

    
      
  • /*
     * @title img fitter
     * @description fit image to window
     * @include http://*
     * @license MIT License http://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    [].slice.call(document.body.querySelectorAll('img, [style*="background-image"]')).forEach(function (node) {
      node.style.maxHeight = document.documentElement.clientHeight + 'px';
    });
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2015/05/19 05:46:43 - 2015-05-19
  2. 2015/05/19 03:58:13 - 2015-05-19
  3. 2015/05/18 03:46:29 - 2015-05-18
  4. 2015/04/27 06:46:52 - 2015-04-27
  5. 2015/04/08 05:08:07 - 2015-04-08
  6. 2015/04/01 04:39:04 - 2015-04-01
  7. 2015/03/30 09:02:29 - 2015-03-30
  8. 2015/03/30 08:48:03 - 2015-03-30