你正在訪問的內容是外部程式的映像位址,僅用於使用者加速訪問,本站無法保證其可靠性。當前的連結位址(單點即可複製)為 https://greasyfork.org.cn/zh-CN/scripts/33052-batch-register-steam-keys/discussions/5064,源站連結 點此以跳轉。
Allows you to redeem your Steam product keys with just one click
< 脚本 Batch Register Steam Keys 的反馈
Support multiline
I suggest to change input element to textarea element. And add newline seperator to split function.
Split:
keys = input.trim().split(/[\s,]+/);
Change element type:
function changeElementType(element, newtype) { var newelement = document.createElement(newtype); while(element.firstChild) newelement.appendChild(element.firstChild); for( var i=0, a=element.attributes, l=a.length; i<l; i++) { newelement.setAttribute(a[i].name, a[i].value); } element.parentNode.replaceChild(newelement, element); return newelement; } var eleInput = document.getElementById('product_key'); eleInput = changeElementType(eleInput, "textarea");
I test this work by modifying your script.
登录以发布留言。
Support multiline
I suggest to change input element to textarea element. And add newline seperator to split function.
Split:
Change element type:
I test this work by modifying your script.