Recent posts by lazyttrick

Subscribe to Recent posts by lazyttrick 37 posts found

Jul 26, 2008
lazyttrick 37 posts

Topic: Script development / For anybody having scope issues with GM_xmlhttpRequest

bump for relevance...

another option is

while(foo){
    request(a, b);
}

function request(a, b){
   GM_xmlhttpRequest({
        method:'GET',
        url:"http://...",
        onload: doIt(a,b)
   });
}

function doIt(a,b){
   //...
}

 
Jul 22, 2008
lazyttrick 37 posts

Topic: Script development / Facebook Ad AJAX update killer

unsafeWindow.setTimeout i guess

 
Jul 21, 2008
lazyttrick 37 posts

Topic: Userscripts.org discussion / Idea for a userscripts.org new feature to help with script's update

Yes, I saw your script or the other one when I was developing mine, then I was like damn it! It's done already... Then I was happy to know they were different.

Indeed, my script could be named Presumptuous Updater, because he also assumes other little things that if don't happen it will silently fail. But I thought it wouldn't be a problem since no information is compromised thanks to GM_setValue... and it only would require you to try again to get it working. Nevertheless I use it a lot, and I never noticed one of those situations happening, nor anyone mention anything about it.

 
Jul 15, 2008
lazyttrick 37 posts

Topic: Userscripts.org discussion / Idea for a userscripts.org new feature to help with script's update

I did a simple way of checking for updates, it works nice
http://userscripts.org/scripts/show/26062

 
Jul 15, 2008
lazyttrick 37 posts

Topic: Script development / create a frameset and redirect the page

maybe unsafeWindow.top.frames[1].addEventListener('load', changeMenu, false);
or document.getElementById('frameid').addEventListener('load', changeMenu, false);

 
Jul 8, 2008
lazyttrick 37 posts

Topic: Script development / addEventListener passing arguments

What I try first is to obtain the information I want from evt.target. Sometimes that will do the trick without passing extra stuff to the function.

 
May 17, 2008
lazyttrick 37 posts

Topic: Script development / gmail URN insert script

Maybe unsafeWindow.globals ? I'm not sure, but once I did something similar...

 
May 11, 2008
lazyttrick 37 posts

Topic: Script development / Userscripts updater (easy way)

Hi, I just wanted to let you guys know about this script. It's being very useful to me, hope it helps:

http://userscripts.org/scripts/show/26062

Note: works with all userscripts.org scripts, including the script itself.

 
May 4, 2008
lazyttrick 37 posts

Topic: Userscripts.org discussion / Script owners to remove comments

there's a flag script feature, which is more trusty than comments...

Also my scripts spams take ages to be removed, if they are being removed, there's more than a week I flagged some spams and nothing til now...

 
May 2, 2008
lazyttrick 37 posts

Topic: Userscripts.org discussion / Script owners to remove comments

Is there any objection to script owners be able to remove comments on his scripts?

Also when removing a comment he could inform if it was a spam or not...

 
May 1, 2008
lazyttrick 37 posts

Topic: Script development / CHIPMARK: a 7zip like...

whaaa???

 
Mar 15, 2008
lazyttrick 37 posts

Topic: Script development / Canceling onclick default action when also using ondblclick

My intention was not push up the topic, but add some reference material to future search users (I found this using the search, and it helped me a lot)...

 
Mar 14, 2008
lazyttrick 37 posts

Topic: Script development / Canceling onclick default action when also using ondblclick

I just made a similar thing with this Youtube script:
http://userscripts.org/scripts/show/23916

i used event.timeStamp and some other stuff... seems to work nice in my case

 
Feb 26, 2008
lazyttrick 37 posts

Topic: Script development / Can somebody please help me

hey i have some scripts for hattrick, but its been a long time i dont log in, my team is so dead i dont even wanna see it... as i may feel sad :(

nice idea your script!

 
Dec 13, 2007
lazyttrick 37 posts

Topic: Script development / keep windows always on top

That was my plan B... but I prefer it floating above all tabs

funny is focus() works exactly 1 time... I wonder if this is some FF protection... it doesn't seem to allow this behavior

 
Dec 10, 2007
lazyttrick 37 posts

Topic: Script development / keep windows always on top

i just need the popup visible, so user can interact with parent while seeing the popup... it seems the easy way would be to use alwaysRaised=yes, but it requires privilege...
so, is there a hard way?

 
Dec 10, 2007
lazyttrick 37 posts

Topic: Script development / keep windows always on top

hi, I'm trying to keep a popup window always on top... i'm calling in the popup a self.focus on blur... it works the first time only...

document.write(1);
self.focus();

the first time it writes and regain focus, but the other times it justs writes 1 and the window stay behind...
i'd like to stay always on top... any idea?

 
Oct 30, 2007
lazyttrick 37 posts

Topic: Script development / YouTube stop video download

great idea, I'll try it, thanks :-)

 
Oct 26, 2007
lazyttrick 37 posts

Topic: Script development / editing problem.

maybe Greasemonkey isn't finding the editor... you can try to uninstall greasemonkey and install it again... so when you click edit it will ask you what editor to use...

 
Oct 26, 2007
lazyttrick 37 posts

Topic: Script development / editing problem.

the editor won't open?

 
Oct 24, 2007
lazyttrick 37 posts

Topic: Script development / Setting the doctype with DOM methods

try something like this:
1. get 'html' node
2. try to get previousSibling, avoid useless #text nodes with node.tagName... if there's no tagName just skip it to previous again

dunno if it works, but...

 
Oct 24, 2007
lazyttrick 37 posts

Topic: Script development / Changing function on the page?

you can try unsafeWindow, check out the examples
http://wiki.greasespot.net/UnsafeWindow

 
Oct 24, 2007
lazyttrick 37 posts

Topic: Script development / How to replace or remove inline javascript functions?

http://wiki.greasespot.net/UnsafeWindow

good you ask, because I need to know too

 
Oct 19, 2007
lazyttrick 37 posts

Topic: Script development / How to access a function that is included in an iframe?

are you replacing the names for the proper ones? (sorry)

 
Oct 19, 2007
lazyttrick 37 posts

Topic: Script development / Stuck with this lil script ;/

probably something like this:

var link, img;
for (var i = 0; i < results.snapshotLength; i++) 
{
   img = results.snapshotItem(i);

   link = document.createElement('a');
   link.setAttribute('href',img.getAttribute('src'));
   link.innerHTML = img.getAttribute('src');//link text

   img.parentNode.appendChild(link);//add link
   link.parentNode.removeChild(img);//remove img
}