tell application "Safari"
tell document 1
--set mybaseURL to do JavaScript "document.URL.slice(0, document.URL.lastIndexOf('/')+1)"
set jslinks to do JavaScript "var jssrcarray = new Array()
for (var i=0;i<document.getElementsByTagName('script').length;i++)
{
jssrcarray.push(document.getElementsByTagName('script')[i].src)
}
jssrcarray
"
repeat with jslink in jslinks
open location jslink
end repeat
end tell
Your email is never published nor shared. Required fields are marked *
You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
CAPTCHA: 7 − six =
Notify me of followup comments via e-mail
Subscribe without commenting E-Mail:
Safari: Öffne alle JavaScript Links
tell application "Safari"
tell document 1
--set mybaseURL to do JavaScript "document.URL.slice(0, document.URL.lastIndexOf('/')+1)"
set jslinks to do JavaScript "var jssrcarray = new Array()
for (var i=0;i<document.getElementsByTagName('script').length;i++)
{
jssrcarray.push(document.getElementsByTagName('script')[i].src)
}
jssrcarray
"
repeat with jslink in jslinks
open location jslink
end repeat
end tell
end tell