• The script now works by simulating a click on the continue link, avoiding the need to directly load the site. This is a fundamental change in logic from the original script, which worked by directly changing the browser URL.
• The new Blogger Content Warning Autoskip II is a small script of only a few lines, but it successfully performs the requested function. It is actually larger than the original script, which had two lines of working code besides the header.
Fixed. In the forum topic discussion, I posted a one-line patch to the script source which corrects it to work with the latest Google Image search.
Remarks 2
• A copy of my post comments about the script follows:
Change the line:
var googFonts = document.evaluate('//font[contains(@color, "#008000")]',
to:
var googFonts = document.evaluate('//tr/td[contains(@id, "Text")]/font/span',
The problem appears to be that the font color is no longer explicitly set within the HTML code, as the original script expects. This patch works around that situation. It is horribly dependent on the DOM structure remaining unchanged, but then, so is the original script.
What have I done for the script-using world lately?
I provided updated code for two scripts in response to forum requests by their users on the userscripts site.
Summary 1
A post on the userscript forums requested an update to an obsolete script which autoskips Blogger’s content warning interstitial page.
Resolution 1
Fixed. A user uploaded the updated script to the userscripts site. Download the revised script: Blogger Content Warning Autoskip II.
Remarks 1
• The script now works by simulating a click on the continue link, avoiding the need to directly load the site. This is a fundamental change in logic from the original script, which worked by directly changing the browser URL.
• The new Blogger Content Warning Autoskip II is a small script of only a few lines, but it successfully performs the requested function. It is actually larger than the original script, which had two lines of working code besides the header.
—–
Summary 2
A post on the userscript forums requested a fix for a broken script, Google Image Relinker Mod, which changes Google Image search link results to link directly to the images.
Resolution 2
Fixed. In the forum topic discussion, I posted a one-line patch to the script source which corrects it to work with the latest Google Image search.
Remarks 2
• A copy of my post comments about the script follows:
Change the line:
var googFonts = document.evaluate('//font[contains(@color, "#008000")]',to:
var googFonts = document.evaluate('//tr/td[contains(@id, "Text")]/font/span',The problem appears to be that the font color is no longer explicitly set within the HTML code, as the original script expects. This patch works around that situation. It is horribly dependent on the DOM structure remaining unchanged, but then, so is the original script.
Possibly related posts: (automatically generated)
This entry was posted on Thursday, March 19th, 2009 at 11:26 pm and is filed under Fixed Scripts, General Script Commentary. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.