Recent posts by jerone

Subscribe to Recent posts by jerone 123 posts found

7 hours ago
jerone 123 posts

Topic: Script development / Gravatar Enlarge

Make it run on all pages: ...
If you've read above posts you've found out that doesn't matter!

@JoeSimmons
But you can search for gravatar images right here and change there location before viewing?!

 
Oct 9, 2008
jerone 123 posts

Topic: Script development / removing bodies of text...? HELP!

Removing/hidding elements is just basic Javascript. Try a tutorial about Javascript first before you ask for help.

 
Oct 9, 2008
jerone 123 posts

Topic: Script development / Memory leaks

Sometimes I read about memory leaks in Javascripts.
I don't fully understand what this is and how this happens.
And for scripting reference; how to check for this?

 
Oct 8, 2008
jerone 123 posts

Topic: Ideas and script requests / Turn drop-down list into list box

Nice clean code, Aquilax.

 
Oct 8, 2008
jerone 123 posts

Topic: Userscripts.org discussion / Spam and malware

Scrap all spammer: http://userscripts.org/users/39307/scripts
A lot of scrap all: http://userscripts.org/users/36222/scripts & http://userscripts.org/users/41738/scripts
Don't know if this allowed; a lot of the same scripts: http://userscripts.org/users/53421/scripts & http://userscripts.org/users/7563/scripts

 
Oct 8, 2008
jerone 123 posts

Topic: Userscripts.org discussion / Site suggestions

Thank you and sleep well ;P

p.s. Feel free to edit above post and cross out if you've got done an item.

 
Oct 8, 2008
jerone 123 posts

Topic: Script development / stop script from executing in Iframes?

You can include this in your scripts:

if(top.location != location){  // anti-frame
    return
};
http://userscripts.org/forums/2/topics/2297

 
Oct 8, 2008
jerone 123 posts

Topic: Script development / Gravatar Enlarge

Not that clear explained, but here and here is some more info.

 
Oct 8, 2008
jerone 123 posts

Topic: Script development / How to Remove a tag?

window.clearTimeout().

 
Oct 8, 2008
jerone 123 posts

Topic: Userscripts.org discussion / Site suggestions

I've got 'some' suggestions you mite consider:

  1. Change "home" into "profile".
  2. Add a link to the homepage and call that "home".
  3. Make searching and tags capital insensitive (linkie).
  4. Try to use the same font-height for normal text and bigger font for headers.
  5. Add a TOC for the metadata (linkie & linkie).
  6. Add a preview button to a new comment/topic.
  7. Show all possible html tags people can use in their comments/topics (linkie).
  8. Move the "Search all scripts" search bar as a link to the mainmenu with it's own page.
  9. In the forums "New Topic" should be positioned better, I also need to search for it. :)
  10. Add emotions in comments.
  11. Style the "version" and "copyright" info just like the "Last updated". Same goes for "Installed ## times".
  12. Add "Topic starter" beside "Last post" in a subforum.
  13. Allow (simple) HTML again in metadata summary (linkie)!!!
  14. Let me remove script versions from the diff list (I mite have uploaded something I better shouldn't have).
  15. The "+" and "-" in the diff should get a margin/padding so it doesn't look like they belong to the source (like google does for example).
  16. Number script source lines.
  17. Clean up the Feedback Forum (linkie).
  18. Add on the home page the scriptwriter beside the userscripts name. Some goes for the scripts page.
  19. Add page titles (window.title) when they're missing (e.g. versions page).
  20. On the versions page, link the words "...current version..." to it's scripts home page.
  21. On the blog page, add also the option "Add a comment" below the comments.
  22. Add a donate button for your costs.
  23. Assign more moderators, as they're almost never online (me?).
  24. Change the boring green/gray image in the forums.
  25. Scripts information that can be changed like "Homepage", "version", "copyright", "Remote script URL" should be added on its own page "Edit/Update information".
  26. Add information when metadata is last updated (linkie).
  27. On a topic show who are "Currently viewing this topic".
  28. Identify in-/outgoing links.
  29. Add include an exclude sites beside the version and copyright information (linkie).
  30. Add options to select for which browser and version this script is written or known to work (linkie).
  31. Also add icons for "Remotely hosted version" and "Script homepage".

Sorry for the big list, I'm just trying to improve something great.
If you've got a question about above, just ask, I'm happy to explain.

gr J

 
Oct 7, 2008
jerone 123 posts

Topic: Userscripts.org discussion / Error: 'window' is undefined

After you restart your browser, go back to the page were you found the script and click the link again and a dialog will popup to install the script.
Don't download the script to your computer itself and try installing it from there; it won't work.

 
Oct 7, 2008
jerone 123 posts

Topic: Script development / Gravatar Enlarge

Simply because the page isn't a HTML page. It page type is "image/png" and not "text/html" (just try to view the page source; you can't).

 
Oct 4, 2008
jerone 123 posts

Topic: Ideas and script requests / Script for Gaia Online

You did search first?

 
Oct 4, 2008
jerone 123 posts

Topic: Script development / How to clean database after many GM_setValue calls?

You could use Cookies or globalStorage, but both have their disadvanteges.

 
Oct 3, 2008
jerone 123 posts

Topic: Ideas and script requests / Opera

Yes there is: UserJS Manager.

 
Oct 3, 2008
jerone 123 posts

Topic: Script development / Gmail Script Problem HELP

First of all use <pre> tags for large chunks of code
and second, what does unsafeWindow.gmonkey mean?

 
Oct 3, 2008
jerone 123 posts

Topic: Script development / Permission denied to call method Window.prompt

Try unsafeWindow.prompt(); or just window.prompt();.

 
Oct 3, 2008
jerone 123 posts

Topic: Script development / is it possible to take a whole page and put what's inside in a table?

You can get the source of a page with GM_xmlhttprequest and append it to a table.

 
Sep 30, 2008
jerone 123 posts

Topic: Script development / Cross Domain CSS problem.

I always use this peace of code to get the real style of an element:

// Get Rendered Style;
// syntax:  $getStyle($gi("testDiv"),"font-size");
// return:  [String]            style value;
// params:  node    [Node]      refered element;
//          attr    [String]    style attribute;
//          (frame) [Node]      frame element (default: document)(optional);
// note:    Mozilla (Firefox), Opera and Safari will return the actual pixels of a measurement, while IE returns the used value;
_.$getStyle = function(node,attr){
    var doc=arguments[2]?arguments[2]:$d;
    if($d.defaultView && $d.defaultView.getComputedStyle){  /**Mozilla,Opera,Safari**/
        return doc.defaultView.getComputedStyle(node,null).getPropertyValue(attr);
    }
    else if(node.currentStyle){  /**IE**/
        return node.currentStyle[attr.toCamelCase()];
}   };

 
Sep 29, 2008
jerone 123 posts

Topic: Script development / Writing style

Thnx znerp, English isn't my first language.

Personally I prefer the latest; takes less characters.

 
Sep 29, 2008
jerone 123 posts

Topic: Script development / Writing style

I'm just with a code writing question; which is better?:

var variable = new Array(bla,bla);
or
var variable = [bla,bla];

The same for RexExp and Object.

 
Sep 29, 2008
jerone 123 posts

Topic: Script development / NFC/NEWS1 original page (redirect & ads section skipper)

OffTopic:
@ekbworldwide, You just mean putting the regexp in a variable. Even then you can define it as var t1 = /regexp/;

 
Sep 29, 2008
jerone 123 posts

Topic: Script development / addEventListener Weirdness

I always first append the new element to the place I want it and then attach an event listener.

 
Sep 28, 2008
jerone 123 posts

Topic: Script development / NFC/NEWS1 original page (redirect & ads section skipper)

if (t2.test(location.href)) {
	tmp = location.href.replace(t2, "/");
	location.href = tmp;
}
@ekbworldwide. Can you tell me why new Regexp is better?

 
Sep 28, 2008
jerone 123 posts

Topic: Script development / (reformatted) Returning XPCnativewrapper from getElementsByTagName, simple script question?

Use this line:

var textwithhref = "<a href=\"" + "http://www.othersite.com/index.php?product=" + hrefnow + "\">" + texttolink.textContent + "<a>";