Allow password pasting

Re-enables password pasting on Ebay and pobably other sites.

이 스크립트를 설치하려면 Tampermonkey, Greasemonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Violentmonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey 또는 Userscripts와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 Tampermonkey와 같은 확장 프로그램이 필요합니다.

이 스크립트를 설치하려면 유저 스크립트 관리자 확장 프로그램이 필요합니다.

(이미 유저 스크립트 관리자가 설치되어 있습니다. 설치를 진행합니다!)

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 Stylus와 같은 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

이 스타일을 설치하려면 유저 스타일 관리자 확장 프로그램이 필요합니다.

(이미 유저 스타일 관리자가 설치되어 있습니다. 설치를 진행합니다!)

// ==UserScript==
// @name           Allow password pasting
// @namespace      none
// @description    Re-enables password pasting on Ebay and pobably other sites.

// @include        *
// @exclude        https?://.*?.facebook.com/.*
// @exclude        https?://.*?.google.com/.*
// @exclude        https?://.*?.?github.com/.*
// @exclude        https?://imgur.com/.*

// @run            document-end

// @author         lukie80
// @copyright      Creative Commons Attribution-ShareAlike 3.0 Unported (CC-BY-SA 3.0)
// @license        http://creativecommons.org/licenses/by-sa/3.0/
// @version        1.0
// @lastupdated    2016.09.20
// 
// ==/UserScript==
//-------------------------------------------------------------------------------------------------------------------

// Code taken from "Chris' blog":
// http://chrisbailey.blogs.ilrt.org/2013/01/03/re-enabling-password-pasting-on-annoying-web-forms-v2/
// The only solution that works so far. 

var inputs = document.getElementsByTagName('input');
for (var i=0; i < inputs.length; i++) {
  if (inputs[i].getAttribute('type').toLowerCase() === 'password') {
    inputs[i].onpaste = function(e) {
      // only Chrome and Safari support clipboardData access on event object
      // see http://codebits.glennjones.net/editing/getclipboarddata.htm
      if (e.clipboardData != undefined && e.clipboardData.getData != undefined)
      {
        this.value = e.clipboardData.getData('text/plain');
      }
      return false;
    }
    
  }
}


//-------------------------------------------------------------------------------------------------------------------