Lusternia Autovoter

by Unknown

Back to Mechanic's Corner.

Ilyarin2011-08-13 12:38:56
Neat. Added. It would be even neater if there was a plugin that did it all behind-the-scenes, so you didn't even see the site pop up, but I'm not sure how feasible this is.
Unknown2011-08-13 12:43:19
Yeah, it's technically possible. Certainly with Linux, although I think I would have to spawn a separate browser process.

It's something I may look into adding in the future.
Shedrin2011-08-13 16:34:14
QUOTE (Draylor @ Aug 13 2011, 07:43 AM) <{POST_SNAPBACK}>
Yeah, it's technically possible. Certainly with Linux, although I think I would have to spawn a separate browser process.

It's something I may look into adding in the future.


*Using Linux*

I'm interested. Thanks for the script.
Unknown2011-08-13 18:44:36
Getting most applications to start minimised is a royal PITA.

However! (Only for Linux at the moment, I am afraid.)

First, install DevilsPie:



sudo apt-get install devilspie



mkdir ~/.devilspie


We now need to create a small script that will tell Chromium/Firefox to start minimised:


(if

(is (application_name) "chromium-browser")
(begin
(minimize)
)
)


Start DevilsPie:


$ devilspie &



os.execute("chromium-browser --focus-existing-tab-on-open http://www.lusternia.com/vote")

hasMonkeyScript = io.open(getMudletHomeDir() .. "/gotScript", "r")
if not hasMonkeyScript then
openUrl("http://bwl.googlecode.com/files/autovote.user.js")
io.output(io.open(getMudletHomeDir() .. "/gotScript", "w"))
io.write("got")
io.close()
end


I have not allowed the script downloading to be minimized as you need to actively accept the script.
Calixa2011-08-14 10:47:13
Lovely. Installed smile.gif