Recent posts by vOidSenses

Subscribe to Recent posts by vOidSenses 109 posts found

Aug 21, 2007
vOidSenses 109 posts

Topic: Script development / Javascript tutorial example with eval

it's just

var ss = inText.indexOf("<script type=\"text\/javascript\">", si); 

the characters / also needs the backslash, maybe thats why it wasn't working
btw can you put the link for the tutorial

i honestly don't know why to divide

 
Aug 21, 2007
vOidSenses 109 posts

Topic: Userscripts.org discussion / Spam and malware

once again, someone duplicated my script with just little edits

http://userscripts.org/scripts/show/8938 (mine)
http://userscripts.org/scripts/show/11624 (rip)

no permission asked and no real purpose to upload the script when not even the header of the script was changed

now... no one ever listened to me, the first duplicate is still here, so i ask, is anyone from us.o going to do anything this time?

 
Aug 19, 2007
vOidSenses 109 posts

Topic: Script development / check the existence of the local file

you can't read and write in files with javascript from firefox, obviously for security reasons... though if you really want to do that for saving something like preferences there is a way by using this http://developer.mozilla.org/en/docs/DOM:Storage though it isn't exactly saving in a file at your choice, but it's something small you should consider to save it with GM_setValue

http://riddle.pl/-/greasemonkey/globalstorage.u... (right click>view user script source)

 
Aug 19, 2007
vOidSenses 109 posts

Topic: Script development / Add a user script

the drag and drop function in the "manage user scripts" is only to organize the order of the installed scripts if you want to install a new script without the "new user script" option you can simply drag the file from where it is on your pc and drop it inside firefox, greasemonkey will show the install GUI... or you can open it with firefox (file>open) or you can even open in the new tab the file itself and reload that tab to update the changes and click on the install button in the top bar from greasemonkey (if you don't understand this last one, thats ok, just do one of the others)

 
Aug 17, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / Direct to 'view as plain text'

i don't understand why use regex either, Descriptor already gave you a better solution, anyway, maybe this will help:
https://addons.mozilla.org/en-US/firefox/addon/...
http://www.cuneytyilmaz.com/prog/jrx/

 
Aug 17, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / Need script for this website

i guess is spam what he wants, sorry but search and learn yourself, i don't think many people will want to teach you or make you a script for someone to spam...

 
Aug 17, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / Top Scripts

hi there, fortunately you can see that yourself, just look at the forums the most active members and scripters, visit the user page and userscripts.org already has a functionality for users to fav scripts, which means you can jsut go the userpage and see the scripts the user has made and the ones he fav, or you can just search using the tags system in the site to find cool scripts, or even install one to show the most installed scripts... so there are plenty of ways to find cool scripts... if you want to start doing scripts yourself i recommend these sites:
Dive into Greasemonkey
Greasespot Wiki
 
Aug 17, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / @name and @description script upload

what do you think this site is about? it's about greasemonkey scripts, not just javascript scripts... learn more about greasemonkey here

 
Aug 16, 2007
vOidSenses 109 posts

Topic: Userscripts.org discussion / What is a must-have script?

.... this site is for scriptwriters to upload their own scripts for other people to use, which means it's not supposed for common users who just happen to have to scripts to upload them themselves, so you if have a bunch of scripts to upload that you made, go ahead and upload them all, if you didn't write them then don't upload them or you will just end up being banned and "your" scripts removed

 
Aug 16, 2007
vOidSenses 109 posts

Topic: Userscripts.org discussion / script duplicates

you reply in this thread about it: http://userscripts.org/forums/3/topics/9
and hope someone from the administration to read it and do something about it...

 
Aug 13, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / script request for ogame stats

script done: http://userscripts.org/scripts/show/11384
please let me know what you think

i used a different approach from what i said before, and in the end i even "cheated" a lit bit because the script wasn't responding like i wanted and instead of searching for the small answer i did one that i knew it was going to work but adds more junk to the script...

 
Aug 10, 2007
vOidSenses 109 posts

Topic: Userscripts.org discussion / Spam and malware

one more vote here for faluntan001...

one suggestion, is there any intention of creating a group of moderators for us.o? because if not, please consider it
i offer myself for moderation (if you find me reliable for the job), i see a lot of spam not being moderated, actually my own complain months ago never was moderated...

 
Aug 9, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / script request for ogame stats

it's simple, the script only needs a preference to store the last range visited, so the script whould do something like this:

1: search for the dropbox (xpath is probably better)
2: save in the "preference value" the index of the selected element in the dropbox
3: use the respective DOM propertie to change the selection ("preference value"+1)

now it should move to the next range automatically

now you only new a check for the last element or first, depending on what you want to do when the script reaches the last page

 
Aug 8, 2007
vOidSenses 109 posts

Topic: Userscripts.org discussion / Spam and malware

http://userscripts.org/users/32172

i don't know if it was a mistake, i'm just asking for some moderation in the script page, which is http://userscripts.org/scripts/show/8938
EDWARD HEATH commented in a weird way and i notice he just recentely joined so...

 
Aug 8, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

done, thx mitzu

added translations 32 and 33, they shouldn't be necessary, but since my accounts aren't that evolved i think is better to add them

 
Aug 8, 2007
vOidSenses 109 posts

Topic: Script development / Remove javascript includes

i'm not sure how the script includes other javascripts with document.write() but how exactly do you want to run the initial javascript? adding the script itself in the document or adding the an instruction to fetch it somewhere else? in both you can just create a new node using document.createElement('script') and append it to the head or body tag (accordingly to your script) and if it's the first case you can just add the script inside the new node

var F_head = document.getElementsByTagName('head')[0];
var F_script = document.createElement('script');
    F_script.type = 'text/javascript';
    F_script.innerHTML = 'yourscripthere';
    F_head.appendChild(F_script);

or if the second example, add the include of it in the head tag

var F_head = document.getElementsByTagName('head')[0];
var F_script = document.createElement('script');
    F_script.type = 'text/javascript';
    F_script.src = 'http://somewhere.com/script.js';
    F_head.appendChild(F_script);

now, how it will add other scripts itself using document.write() i honestly don't know, maybe i could help you tell what you want to do with the script

 
Aug 8, 2007
vOidSenses 109 posts

Topic: Script development / fix script to open link in new tab with left click

just to let you know, i didn't even opened the link to see what the script does, i'm just read about the focus and i just want to remember you guys about the blur() and focus() functions in javascript, i don't even know if they solve the problem...

cheers

 
Aug 8, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

thank you mike_dk but i just saw your comment now, exactly when i was going to add the danish translation, so it wasn't needed anymore, but thank you anyway

 
Aug 6, 2007
vOidSenses 109 posts

Topic: Ideas and script requests / Script Request

well, there is, but not just by using a script, you need something to "read" the image code, it's called an OCR program, basically the program scans the image and tries to separate it's difference components, imagine you have a magazine, you put a scan of a page in the OCR program and the program converts to a file (normally people prefer pdf format) where the elements are divided and editable, it's like converting an image to a word document, with images and text... but people sometimes use it to pass verification images (when not too complex) to do it you need a macro program (which substitutes the script you want to make) which will use the result of the OCR program to pass the image verification, but it might be too complex to do

to give you an example there are people using this method to download stuff in rapidshare servers, basically they use a macro program that after downloading something will restart you internet connection (to give you a different ip address) go to the new download page and use the OCR program to pass the image verification in the site

 
Aug 3, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

i just finished adding Taiwan translation, i didn't add Slovene yet because i can't find the server, and danish because i didn't had more time, maybe tonight...

thx all for the translations

 
Aug 1, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

thx erniebert, i really like constructive critics ;)
about the patch, well while some people have fun playing the game with or without the script, i have fun making the script, specially something difficult, i learn a lot by spending hours trying to do one simple function, i'm not a professional so... for example from time to time when i look to some of the older parts of the script code i normally find one or two things that i could rewrite to something simpler or even a whole block of code, i actually want to rewrite from scratch all the script, but i just don't have the time, so i prefer to consider your ideas an making them myself, rather then copy/paste into the script, this is also one of the reason i don't like/want to copy other scripts...

//1. "time available" looks like you have an X amount of time to do something, like if the time reaches zero something will happen, but the truth is that the time is not you want, what you want to know is when do you have the possibility to build something and not when is going to be built, when the time reaches zero nothing will happen, i kinda understand, but it looks more correct to me, so unless is bothering anyone else i will let it stay for now

//2. why not, i like the idea, but like i already said, i want to change some parts of the script, simpler functions and stuff, i also want to do something else, i want to give people the option to change the way the time is displayed, because for example in Korean it doesn't makes sense to have 2h 50m 10s because their word for hour, minutes and seconds doesn't start with h, m or s, or for example in Portuguese makes more sense to have day-month-year, while in english is more like month-day-year or whatever, so basically i'm thinking of something like date functions in php or the toString() that you talked about, where you make your own format, so what i'm trying to say, is that i will do it, but i want to rewrite it all before that, i'll see... in the time i did them i wasn't familiar with javascript enough, and there are still stuff unknow to me in javascript

//3. 4. 5. i think i already saw this somewhere else and i like the idea, but instead of adding a new line and having to modify the resize it's better putting it in some existing line, maybe the title or somewhere else, though i have other ideas for the title... i actually prefer having a compact table, but i also like to having all kind of information in it, instead of calculating or going to other pages, i'm lazy so.. so this is one reason why i wanted to rewrite the building pages completely instead of adding information, i hate how the pages of ogame are organized, there is lot of space unused while having other parts completely blotted, so in resume, i will add it, but i need to think where and how first

//6. zpad?

 
Jul 31, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

@matrixjimmy: thx, unfortunately this month i can only be at the pc for short periods of time and i don't have my IDE installed here nor this windows has asian characters installed, so i can't see them here... so it might take a while, about the file type i can't do anything, actually i already tried with no success, greasemonkey doesn't accepts UTF-16 and UTF-8 isn't enough for all the languages :\

 
Jul 27, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

thx gaja, fixed ;) and thx for the translations

 
Jul 25, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

@pyr0Beast: as soon as i finish the fleet page rewrite i will add Slovene, sorry for being late :\

for all the others who the script stopped working it was because of the new domain names, now almost all languages have the dns like http://uni##.ogame.###/, sorry for the late update, but it's here, and it should be working

btw, the new update has some missing translations, if you want to help do me a favor, go to the fleet page, click in "continue" and copy the strings corresponding to the "Deuterium usage", i want the translation for "speed", these requests are just temporary, i will request them as i normally do when i finish scripting the fleet page

 
Jun 28, 2007
vOidSenses 109 posts

Topic: Script development / Multi-language script (do you want to translate?)

thats a good point gaja, i completely forgot about that case

djuro, it's working here :\ but i will recheck see if i can find something