Author | Thread |
|
06/01/2007 12:23:30 AM · #1 |
Hi all,
Since there seems to be a rash of GreaseMonkey problems recently, I thought I'd put together some suggestions of what you can do to troubleshoot them.
Scripts behave oddly
The first thing to make sure is that you don't have two versions of the script installed. Open Tools->GreaseMonkey->Manage User Scripts, and look at the list of installed scripts. Make sure there are no duplicates.
Failing that, try uninstalling and reinstalling the script to see if this fixes the behavior.
If it's still a problem, read on.
Some issues installing scripts with latest versions of GM
There is a bit of discussion here about this problem. The two suggested solutions are:
1. Disable and re-enable GreaseMonkey (by clicking the colored Monkey icon at the bottom right of your window) and try the install again.
2. Uninstall GreaseMonkey (Tools -> Add-ons -> select GM -> click unisntall) and install an older version found here
If all else fails, provide me with the debug info I need to fix it
If you think a script is causing problems, and you'd like to send me debug information, here's how:
While the FireFox error console give some info, it is too general scope to debug script problems. Mostly because the log gets cluttered up with CSS and other problems that have nothing to do with the scripts.
You need a decent error message (with a script filename and a line number). To get that, use FireBug. It is a FireFox addon, like GreaseMonkey, specifically for debugging JavaScript.
After you install FireBug, enable it (Tools -> FireBug -> Enable Firebug), then click the Green Circle icon (next to the monkey icon, at the bottom right of your screen). There is a console window tab that will give detailed error information.
An error in a script will cause the Green check to turn into a Red X, and the error message in the console tab will look like this:
Error: Object not found dpcprofileimagesinforums.js line 28
Note the filename gives a clue as to what's causing the error, and is even so kind as to provide a line number.
If it's one of my scripts (dpcprofileimages, dpckeyboardvoting, etc), PM me the error message, the filename, and the line number, and I'll look into it.
Hope this helps!
Cheers,
-Jeff
Message edited by author 2007-06-01 00:43:03. |
|
|
06/01/2007 12:26:36 AM · #2 |
PS - with FireBug installed, you may see other errors on the site. Ones I run into a lot are:
Ldd is not defined menu9_com.js (line 359)
and
p_row has no properties profile.php (line 407)
These are from DPC's built-in scripts - they're not mine, so it won't help to PM me. Mine are all named dpc-something.js, and are fairly obvious names, like dpckeyboardvoting and dpcslideshow.
-Jeff
|
|
|
06/01/2007 12:36:58 AM · #3 |
PPS - for the technically interested, FireBug is the best thing since... well, ever.
In that little console, you can test JavaScript commands like those I use to build DPCmod scripts. Go ahead and try these to get your feet wet:
document.body.style.backgroundColor="#f00";
alert("Hello world!");
window.location = "//www.onetacoshort.com/DPCmod/";
document.body.style.border = "50px solid #0f0";
JavaScript is the language that allows your browser to be more interesting and interactive. It could play Tic-Tac-Toe with you, give you a drag and drop interface, add informational tooltips, allow you to chat live with other folks (with some server-side help), or provide visual effects.
Go google search for JavaScript tutorials, and you're off! Ahh, endless fun and learning.
Cheers,
-Jeff
Message edited by author 2007-06-01 00:46:19. |
|
|
06/01/2007 12:41:12 AM · #4 |
Going to download it now. Thanks for the post.
SDW |
|
|
Current Server Time: 08/28/2025 08:14:06 PM |
Home -
Challenges -
Community -
League -
Photos -
Cameras -
Lenses -
Learn -
Help -
Terms of Use -
Privacy -
Top ^
DPChallenge, and website content and design, Copyright © 2001-2025 Challenging Technologies, LLC.
All digital photo copyrights belong to the photographers and may not be used without permission.
Current Server Time: 08/28/2025 08:14:06 PM EDT.
|