|
|
|
|
@ -1,7 +1,12 @@ |
|
|
|
|
(function() { |
|
|
|
|
let newText = "%1"; |
|
|
|
|
const activeElement = document.activeElement; |
|
|
|
|
activeElement.value = decodeURIComponent(escape(window.atob(newText))); |
|
|
|
|
|
|
|
|
|
if (window.location.href.startsWith("https://web.telegram.org/")) { |
|
|
|
|
activeElement.textContent = decodeURIComponent(escape(window.atob(newText))); |
|
|
|
|
} else { |
|
|
|
|
activeElement.value = decodeURIComponent(escape(window.atob(newText))); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Note: simulate input event on active element after set focus text.
|
|
|
|
|
// Some website need input event before submit form.
|
|
|
|
|
|