Recent posts by lazyttrick

Subscribe to Recent posts by lazyttrick 51 posts found

8 hours ago
lazyttrick 142 posts

Topic: Script development / Absolute newbie needs to resize columns and fonts on a website

NoSquint extension is handy to zoom text and image. You set your options globally and per site, and you can add a zoom button to the toolbar.
https://addons.mozilla.org/firefox/addon/2592

 
8 hours ago
lazyttrick 142 posts

Topic: Script development / Conditional Search + RegExp

this cheatsheet helped me a lot, and still does...
http://www.visibone.com/regular-expressions/
check out the subexpressions part

 
8 hours ago
lazyttrick 142 posts

Topic: Script development / Newbie Question

also, not all elements have id, its an optional attribute... if theres no Id and you want to get an element, you may want to use XPath:
http://diveintogreasemonkey.org/patterns/match-...

 
8 hours ago
lazyttrick 142 posts

Topic: Script development / mouse event targets

try the event name without the "on" prefix

 
Oct 29, 2008
lazyttrick 142 posts

Topic: Script development / simulate click

I've been trying to simulate click on a link using dispatchEvent, but it doesn't follow the link... Can anyone confirm if this is the behavior? thx

 
Oct 26, 2008
lazyttrick 142 posts

Topic: Script development / Useful code snippets

all I know is I got that error once and that solved, now I don't see the error anymore, true... under construction now

 
Oct 25, 2008
lazyttrick 142 posts

Topic: Script development / Useful code snippets

Youtube was preventing document.createElement with some html permission error... not sure if this is necessary anymore...

 
Oct 25, 2008
lazyttrick 142 posts

Topic: Script development / Useful code snippets

.

 
Oct 16, 2008
lazyttrick 142 posts

Topic: Script development / getComputedSyle exception

howdy folks,

Does this code document.defaultView.getComputedStyle(theElement,null).getPropertyValue(whichStyle); works under Greasemonkey? I'm getting some exceptions, not sure if its the code now...

 
Oct 12, 2008
lazyttrick 142 posts

Topic: Userscripts.org discussion / Versions & Diffs for a userscript

Hi, anyone can inform what's the GMT used by the server to define those times? I think I may need to know for the updater, not sure though... thanks :)

 
Sep 10, 2008
lazyttrick 142 posts

Topic: Script development / url

http://www.visibone.com/regular-expressions/

 
Sep 4, 2008
lazyttrick 142 posts

Topic: Script development / Delayed action?

these context problems sometimes are difficult to deal with, but you can try many different things, like settimeout within greasemonkey context, then you may call there or at unsafeWindow.someFunctionInThePage...

 
Sep 3, 2008
lazyttrick 142 posts

Topic: Ideas and script requests / Hide text between certain words?

can you post the link, or the html or a screenshot of the page?

 
Aug 17, 2008
lazyttrick 142 posts

Topic: Script development / Getting headers of a script?

The only way I know of checking if other scripts are installed is searching for it's "footprints"... kinda cumbersome

 
Jul 26, 2008
lazyttrick 142 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 142 posts

Topic: Script development / Facebook Ad AJAX update killer

unsafeWindow.setTimeout i guess

 
Jul 20, 2008
lazyttrick 142 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 142 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 14, 2008
lazyttrick 142 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 7, 2008
lazyttrick 142 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 142 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 142 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 142 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 142 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 142 posts

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

whaaa???