downthemall / anticontainer

DownThemAll! AntiContainer (Extension to a Firefox, Seamonkey extension)
Mozilla Public License 2.0
93 stars 41 forks source link

Sandboxed javascript allow eval #65

Closed albertofustinoni closed 11 years ago

albertofustinoni commented 11 years ago

Trying to write a plugin for a website that goes to great lengths to disguise their download links: they generate them via javascript and modify the page markup on the client after loading. Unfortunately, they also cycle between different algorithms, so just reimplementing the algorithm doesn't work for long. Is there any way of using eval or an equivalent to run a string as javascript source within the anticontainer sandbox? If not, is there a way of getting the page source in the plugin AFTER the javascript it contains has executed?

nmaier commented 11 years ago

eval in a sandbox should work... Can you elaborate please.

albertofustinoni commented 11 years ago

Uhm... I tried again rewriting my script from scratch and now it works. Sorry about that, I thought the sandbox might have disabled eval() for security reasons.