Jump to content

IE find variable in source help


Kyme
 Share

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...