Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Calling functions across independently-obfuscated scripts? #65

Open
Labels
@communque

Description

@communque

I was curious if separate scripts obfuscated independently from one another can call functions from one another.

I just tested, and it seems to work fine -- functions between scripts successfully call one another, but I was curious if this is 100% reliable.
Are there circumstances where obfuscated code will make functions or global variables, etc. unrecognizable?

The following suggests it works fine:

index.html

<!doctype><html><head><script src="Script1.js"></script><script src="Script2.js"></script><script>window.onload=Script1;</script></head><body></body><html>

Script1.js (Obfuscated)

function Script1(){alert("Script1");Script2();}

Script2.js (Obfuscated separately)

function Script2(){alert("Success");}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp