The Un-Official Proxomitron Forum
sUserJS script insertion point switch - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Proxomitron Config Sets (/forumdisplay.php?fid=43)
+--- Forum: Sidki (/forumdisplay.php?fid=44)
+--- Thread: sUserJS script insertion point switch (/showthread.php?tid=1784)



sUserJS script insertion point switch - sh8an - Jun. 17, 2011 03:30 PM

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


RE: sUserJS script insertion point switch - JJoe - Jun. 18, 2011 04:01 AM

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>.


RE: sUserJS script insertion point switch - sh8an - Jun. 21, 2011 12:32 PM

great. it works!