Open tjorim opened 8 years ago
Nices ideas :+1:
The ability to paste the code directly is pretty hard, because of the '
, ,
and the "
. Maybe a filebrowser to select the location of the bot.js
is easy and fast enough for a user.
@K00sKlust
Yeah that might be a problem, selecting a local script like file://D:/Documents/GitHub/Slither.io-bot/bot.user.js
does work though.
A fileselector could be ease, would the use of <input type=‘file’>
or a dialog like this be preferred?
Wrap the content of a table cell if too long - tjorim
Wouldn't it be nicer to just add a horizontal scrollbar to the table? - K00sKlust
Yes, but then it should only be the table. Or better yet: only the concerned column so we could still see about which of the bots it is.
Right now the whole window has a horizontal scrollbar and the values flow out of the table, the size of the table doesn't adjust (because it can't as the width of the container is fixed).
I will take a look at it next week. I'm pretty busy at the moment. :) Feel free to write some code. I think the current method to inject the script is fine.
Does that dialog just return a string of the filepath?
It does.
On success this method returns an array of file paths chosen by the user, otherwise it returns undefined.
That means we can just pass the first path of the list to the inject function. (insertScriptToWindow
)
Near future:
Far far future: