Post Reply 
Help Removing Some JavaScript
Dec. 22, 2005, 05:33 PM
Post: #1
Help Removing Some JavaScript
I'm trying to remove a little javascript SetTimeout function on http://www.cdcovers.cc so it will show the cover instantly instead of waiting for 7 seconds. This is what I have so far, but it's not working.

Code:
[Patterns]
Name = "CDCovers.cc No Wait [Shea]"
Active = TRUE
Multi = TRUE
URL = "(www.|)cdcovers.cc/"
Limit = 1024
Match = "window.onLoad=setTimeout('document.the_cover.src=\"\1\"', 7000);"
Replace = "window.onLoad=document.the_cover.src="\1";"

�{=(~�::[Shea]::��~)=}�
How 'bout you sideburns, you want some of this milk?
This fading text is pretty cool, eh? I bet you wish you had some.
Add Thank You Quote this message in a reply
Dec. 22, 2005, 08:22 PM
Post: #2
 
You probably just need to escape the parentheses
Code:
[Patterns]
Name = "CDCovers.cc No Wait [Shea]"
Active = TRUE
Multi = TRUE
URL = "(www.|)cdcovers.cc/"
Limit = 1024
Match = "window.onLoad=setTimeout\('document.the_cover.src=\"\1\"', 7000\);"
Replace = "window.onLoad=document.the_cover.src="\1";"

HTH
Add Thank You Quote this message in a reply
Dec. 22, 2005, 10:47 PM
Post: #3
 
Ahh, I escaped the quotes, but missed the parenthesis. That fixed it.

�{=(~�::[Shea]::��~)=}�
How 'bout you sideburns, you want some of this milk?
This fading text is pretty cool, eh? I bet you wish you had some.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: