+/-passwd

    @@ -28,6 +28,6 @@ })(); /* for mobile -(function(){Array.prototype.forEach.call(document.body.querySelectorAll(['input[type="text"][data-let-visibled-password]','input[type="password"]']),function(pass){if(pass.type==='text'){pass.type='password';}else{pass.type='text';pass.dataset.letVisibledPassword='';}});})(); +javascript:(function(){Array.prototype.forEach.call(document.body.querySelectorAll(['input[type="text"][data-let-visibled-password]','input[type="password"]']),function(pass){if(pass.type==='text'){pass.type='password';}else{pass.type='text';pass.dataset.letVisibledPassword='';}});})(); */
  • /*
     * @title +/-passwd
     * @description toggle password visibility
     * @include http://*
     * @include https://*
     * @contributor aqril   http://let.hatelabo.jp/aqril/let/hLHWnefM9NpN (Fork of)
     * @license MIT License https://opensource.org/licenses/MIT
     * @javascript_url
     */
    
    // c.f.
    // http://qiita.com/AQRiL_1132/items/10d6934da27b171a1e2e
    // TBD ES6+/ES2015+
    (function () {
        'use strict';
    
        Array.prototype.forEach.call(document.body.querySelectorAll([
            'input[type="text"][data-let-visibled-password]',
            'input[type="password"]'
        ]), function (pass) {
            if (pass.type === 'text') {
              pass.type = 'password';
            } else {
              pass.type = 'text';
              pass.dataset.letVisibledPassword = '';
            }
        });
    })();
    
    /* for mobile
    javascript:(function(){Array.prototype.forEach.call(document.body.querySelectorAll(['input[type="text"][data-let-visibled-password]','input[type="password"]']),function(pass){if(pass.type==='text'){pass.type='password';}else{pass.type='text';pass.dataset.letVisibledPassword='';}});})();
    */
    
    
  • Permalink
    このページへの個別リンクです。
    RAW
    書かれたコードへの直接のリンクです。
    Packed
    文字列が圧縮された書かれたコードへのリンクです。
    Userscript
    Greasemonkey 等で利用する場合の .user.js へのリンクです。
    Loader
    @require やソースコードが長い場合に多段ロードする Loader コミのコードへのリンクです。
    Metadata
    コード中にコメントで @xxx と書かれたメタデータの JSON です。

History

  1. 2017/01/08 00:34:38 - 2017-01-08
  2. 2017/01/06 09:34:36 - 2017-01-06
  3. 2017/01/06 09:08:40 - 2017-01-06
  4. 2017/01/06 09:08:09 - 2017-01-06