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

262
Visualizações
Firefox 96.0.2 Win10 - change inner and outerHTML in outerBrowser from innerBrowser via webextensions API - here: via userChrome.js *.uc.js

I never worked with browser technology (firefox). I am an absolute beginner and only come to this topic because I want to create a private ad blocker for my newspaper reading. I was able to block some things via the userContent.css, but you can't get rid of the reloaded - randomly generated - IDs, css class names and scripts. Hence the attempt via uc.js for there I could combine it with some other features like custom NewTabURL etc. (https://github.com/xiaoxiaoflood/firefox-scripts/tree/master/chrome/utils)

But to be able to use content_scripts in uc.js they would have to be 'added' into uc.js.

So it seems that the locale manifest.json which seems to be read and converted into the install.rdf has to be modified ... see in https://github.com/xiaoxiaoflood/firefox-scripts/blob/master/chrome/utils/BootstrapLoader.jsm in line 230 :

let manifestData = await pkg.readString('install.rdf');
let manifest = InstallRDF.loadFromString(manifestData).decode();

... but where is this locale (line 198), which is read here ... I cannot find it ... is it packed somewhere???

function readLocale(aSource, isDefault, aSeenLocales) {
  let locale = {};
  if (!isDefault) {
    locale.locales = [];
    for (let localeName of aSource.locales || []) {
      if (!localeName) {
        logger.warn('Ignoring empty locale in localized properties');
        continue;
      }

Or does someone know how to bind content_scripts after the (for me) not findable manifest.json is converted into the install.rdf in the BootstrapLoader.jsm in line 178 :

var BootstrapLoader = {
  name: 'bootstrap',
  manifestFile: 'install.rdf',
  async loadManifest(pkg) {

Best thanks Axel

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