Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

280
Views
Is there a way to override functions in an IIFE?

I am looking to modify a program that uses web technologies for its interface (Vivaldi Browser).

The relevant code that I want to change is in an IIFE (bundle.js). It is a minified file bundled with webpack. I can manually edit the functions in the file, but after each program update the changes are lost.

The typical method for adding modifications to the program is by adding scripts after the script that contains the IIFE in the HTML file responsible for the interface (browser.html).

HTML Structure:

...
<body>
   <script src="bundle.js"></script>
   <script src="modificationScriptHere.js"></script>
...

The IIFE is formatted like so:

(() => {
   var t = {
      11: (a) => {
            console.log(a)
         },
      12: ...
   };
   ...
})();

Is it possible to override the example function 11 to something else from another script?

It would be best if no changes needed to be made to the script with the IIFE, but I am guessing that would be impossible.

Program Details:

  • Program Site:
    • Vivaldi Browser
  • Modding Guide:
    • Forum Post
  • Location of bundle.js:
    • YOUR_VIVALDI_DIRECTORY/Application/VERSION_NUMBER/resources/vivaldi/bundle.js
  • Location of HTML file:
    • YOUR_VIVALDI_DIRECTORY/Application/VERSION_NUMBER/resources/vivaldi/browser.html
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!