Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

282
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda