Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8559929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:09:55+00:00 2026-06-11T16:09:55+00:00

Let say I want to mess with particular site and inject some function there

  • 0

Let say I want to mess with particular site and inject some function there to interact with the page. Can then website admin check that by checking window object if there are only function defined by him, and if there are differences beam back by ajax to his server, so in fact can my code be stealed/looked upon in that way ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:09:56+00:00Added an answer on June 11, 2026 at 4:09 pm

    If you inject code in the global context of a website that website could use JavaScript to detect this and, by using .toString() on your functions, get the sourcecode of the injected functions.

    However, that’s pretty unlikely and you can always put most of your code into an anonymous self-executing function that only uses proxy functions when registering events etc. which then call your actual logic – and those functions would not be accessible outside the anonymous closure.

    (function() {
        function doCrazyStuff() { /* OMG THIS IS TOP SEKRET! */ }
        function crazyStuffProxy() { doCrazyStuff(); }
        window.onload = crazyStuffProxy;
    });
    

    Now someone with access to window could get the code of crazyStuffProxy but would have no way of accessing doCrazyStuff.

    Of course this only applies if you don’t inject all your code using <script> tag. But since you tagged your question opera-extension your code probably runs in a different context except the code you actually add to the window or DOM elements so that shouldn’t be a problem…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say you want to allow some particular XML element to occur 0+ times.
let say I want to do this: var dashboard = {}; var page =
Let's say we want to do some substitutions only between some patterns, let them
Let's say I want some instance of String behave differently from other, normal instances
Let's say you want to do some simple vector calculation: //this could be C++
Let's say we want to bind an event listener on a page other than
Let say I want to create comic reader app where the user can download
Let say I want to refer to a restaurant page, I could use one
Let say I want to extract data from a web page with the following
Let's say you want to create a Digg.com-like site. Should the votes be its

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.