Sign in to follow this  
Followers 0
Kyme

IE find variable in source help

2 posts in this topic

hi all

i try to make this one and i can made it:(

for example on youtube, when you watch one movie in source of page(in firefox) exist this

var embedUrl = 'xxxxxxxxxxxxxxxxxx'

how i can made some script to msgbox me what contain embedUrl?

some func to find variable?...i try IEBodyReadHTML and IEDocReadHTML but nothing:|

it's there some trick to find this?

thank you

Regard,kyme

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

hi all

i try to make this one and i can made it:(

for example on youtube, when you watch one movie in source of page(in firefox) exist this

var embedUrl = 'xxxxxxxxxxxxxxxxxx'

how i can made some script to msgbox me what contain embedUrl?

some func to find variable?...i try IEBodyReadHTML and IEDocReadHTML but nothing:|

it's there some trick to find this?

thank you

Regard,kyme

InetGet ("http://www.youtube.com/watch?v=mY5qJHZCz2I&feature=rec-HM-r2", "a.html")
$file = FileRead ("a.html")
FileDelete ("a.html")
If StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 0) Then
    $RegExp = StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 1)
    MsgBox (0, "", $RegExp[0])
EndIf

To see it without the forum changing parts into smileys:

InetGet ("http://www.youtube.com/watch?v=mY5qJHZCz2I&feature=rec-HM-r2", "a.html")
$file = FileRead ("a.html")
FileDelete ("a.html")
If StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 0) Then
    $RegExp = StringRegExp ($file, "(?:var embedUrl = ')(http://www.youtube.com.{1,100})(?:';)", 1)
    MsgBox (0, "", $RegExp[0])
EndIf
Edited by exodius

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0