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:
- Modding Guide:
- 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