画像の下にURLを表示

    @@ -5,6 +5,7 @@ $(function(){ $('img').each(function(){ + if($('this').attr('src')) $(this).after($('<a />') .text( $(this).attr('src') ) .attr('href', $(this).attr('src'))
  • /*
     * @title 画像の下にURLを表示
     * @require jQuery
     */
    
    $(function(){
      $('img').each(function(){
        if($('this').attr('src'))
        $(this).after($('<a />')
          .text( $(this).attr('src') )
          .attr('href', $(this).attr('src'))
          .attr('target','_blank')
          .css({
              'position': 'relative',
              'z-index': 100
          })
        );
      });
    });
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2019/08/14 12:07:31 - 2019-08-14
  2. 2014/09/27 19:51:44 - 2014-09-27
  3. 2014/09/27 19:50:58 - 2014-09-27
  4. 2014/09/27 19:49:12 - 2014-09-27
  5. 2014/09/27 19:46:15 - 2014-09-27
  6. 2014/09/27 19:42:39 - 2014-09-27
  7. 2014/09/27 19:40:15 - 2014-09-27
  8. 2013/06/01 16:28:36 - 2013-06-01
  9. 2013/06/01 16:27:06 - 2013-06-01
  10. 2013/06/01 16:25:33 - 2013-06-01
  11. 2013/03/12 10:58:38 - 2013-03-12
  12. 2013/02/07 22:04:39 - 2013-02-07
  13. 2013/02/07 22:00:58 - 2013-02-07
  14. 2013/02/07 21:59:31 - 2013-02-07
  15. 2012/09/02 19:33:14 - 2012-09-02