Greasy Fork is available in English.

Skribbl.io Helper

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

< Părere la script-ul Skribbl.io Helper

Recenzie: Bun, script-ul merge

§
Postat în: 18-07-2019

Good job !

It's simple, clean, and works perfectly.

§
Postat în: 18-07-2019

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( )

n0thingAutor
§
Postat în: 20-07-2019

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

§
Postat în: 20-07-2019

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){

Postează un raspuns

Autentifică-te pentru a posta un răspuns.