-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbookmarkleted.txt
1 lines (1 loc) · 2.32 KB
/
bookmarkleted.txt
1
javascript:(function()%7Bconst%20EVENT_OPTIONS%20%3D%20%7Bbubbles%3A%20true%2C%20cancelable%3A%20false%2C%20composed%3A%20true%7D%3Bconst%20EVENTS%20%3D%20%7BBLUR%3A%20new%20Event(%22blur%22%2C%20EVENT_OPTIONS)%2CCHANGE%3A%20new%20Event(%22change%22%2C%20EVENT_OPTIONS)%2CINPUT%3A%20new%20Event(%22input%22%2C%20EVENT_OPTIONS)%2C%7D%3Bfunction%20overrideListeners(eventType)%20%7Bwindow.addEventListener(eventType%2C%20function(event)%20%7Bevent.stopImmediatePropagation()%3B%7D%2C%20true)%3B%7Dvar%20inputDiv%20%3D%20document.createElement(%22div%22)%2CinputText%20%3D%20document.createElement(%22textarea%22)%2CinputButton%20%3D%20document.createElement(%22button%22)%3Btry%20%7Bconsole.log(%22TRY%20BLOCK%20START%22)%3BoverrideListeners(%22cut%22)%3BoverrideListeners(%22copy%22)%3BoverrideListeners(%22paste%22)%3Bvar%20ACE_SCROLLER%20%3D%20document.getElementsByClassName(%22ace_scroller%22)%5B0%5D%3Bconsole.log(ACE_SCROLLER)%3Bif%20(ACE_SCROLLER%20!%3D%20undefined)%20%7Bconsole.log(%22ACE_SCROLLER%20PASSED%22)%3Bdocument.getElementsByTagName(%22body%22)%5B0%5D.appendChild(inputDiv)%3BinputDiv.appendChild(inputText)%3BinputDiv.appendChild(inputButton)%3BinputButton.textContent%20%3D%20%22%E2%A4%B6%22%3BinputButton.style.color%20%3D%20%22%23fff%22%3BinputButton.style.background%20%3D%20%22%23000%22%3BinputText.style.color%20%3D%20%22%23fff%22%3BinputText.style.background%20%3D%20%22%23000%22%3BinputDiv.style.position%20%3D%20%22absolute%22%3BinputDiv.style.top%20%3D%20%2260px%22%3BinputDiv.style.left%20%3D%20%220px%22%3BinputDiv.style.zIndex%20%3D%20%222147483647%22%3Bdocument.getElementsByClassName(%22ace_scroller%22)%5B0%5D.addEventListener(%22click%22%2C%20(event)%20%3D%3E%20%7Bvar%20inputElement%20%3D%20document.getElementById(%22ace_text-input-textarea%22)%3BinputText.value%20%3D%20inputElement.value%3B%7D)%3BinputButton.addEventListener(%22click%22%2C%20(event)%20%3D%3E%20%7Bvar%20text%20%3D%20inputText.value%20%3Bvar%20inputElement%20%3D%20document.getElementById(%22ace_text-input-textarea%22)%3BinputElement.value%20%3D%20text%3Bvar%20tracker%20%3D%20inputElement._valueTrackertracker%20%26%26%20tracker.setValue(text)%3BinputElement.dispatchEvent(EVENTS.INPUT)%3BinputElement.dispatchEvent(EVENTS.BLUR)%3B%7D)%3B%7D%20else%20%7Bconsole.log(%22ACE_SCROLLER%20UNDEFINED%22)%3B%7D%7D%20catch%20%7Bconsole.log(%22TRY%20FAILED%22)%3B%7D%7D)()