Skribbl.io Helper

Learns the wordlist each round and outputs possible words in chat.

< 腳本Skribbl.io Helper的回應

評論:正評 - 腳本一切正常

§
發表於:2019-07-18

Good job !

It's simple, clean, and works perfectly.

§
發表於:2019-07-18

I had to modify 2 lines of code, to correct a bug : if the word "butterfly" already exists in the wordlist, then the word "fly" will never be recorded.

if (localStorage.getItem(wordlist).search('"' + word + '"') === -1){

if (localStorage.getItem(wordlist).search('"' + wordchoicelist[i] + '"') === -1){

I just added the double-quotes in the search( )

n0thing作者
§
發表於:2019-07-20

Thanks for letting me know, it was a very simple idea hence a simple script.

I just compared the script now, makes sense! These kinds of things tend to slip through. I'll implement it in v0.23

§
發表於:2019-07-20

I also modified those 2 lines with a case insensitive search...

if (localStorage.getItem(wordlist).search(new RegExp('"' + word + '"', "i")) === -1){

if (localStorage.getItem(wordlist).search(new RegExp('"' + wordchoicelist[i] + '"', "i")) === -1){

發表回覆

登入以回復