Post Reply 
sUserJS script insertion point switch
Jun. 17, 2011, 03:30 PM
Post: #1
sUserJS script insertion point switch
sUserJS is cool Smile!
But inserts the script on the top.
Why the switch is needed.
some image sites have recently developed a random function name generation scheme for ensuring over 18 age check. the hiding jscript functions name is random while over18 function is static.
so it would be nice to be able to insert sUserJS just before </body> and use inline existing scripts.

ps
tried
$SET(sUserJS=window.addEventListener("load",over18,false)Wink
and
$SET(sUserJS=window.onload=over18Wink
with no luck
Add Thank You Quote this message in a reply
Jun. 18, 2011, 04:01 AM
Post: #2
RE: sUserJS script insertion point switch
Did you try sUserJSB?

Quote:## append user script $SET(sUserJSB=JS_CODE)
##
## Similar syntax as above but overrides functions and variables that have
## been declared during page load.

It appears to insert at <ProxBottom> which should be near before </body>.
Add Thank You Quote this message in a reply
Jun. 21, 2011, 12:32 PM
Post: #3
RE: sUserJS script insertion point switch
great. it works!
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: