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

159
Visualizações
How to use redirect transform when coding a chrome extension

I am trying to make an extension that redirects all reddit links to old reddit version but when I try it nothing happens (the link just gets opened in the new reddit domain not the .old one)

my manifest.json:

  "name": "OldREddit",
  "action": {
    "default_icon": "icon.png"
  },
  "icons": { 
    "16": "icon.png",
    "48": "icon.png",
    "128": "icon.png" },
  "manifest_version": 3,
  "version": "0.1",
  "description": "Do not like the new reddit UI? This extension turns all new reddit links to old.reddit domain",
  "declarative_net_request" : {
  "rule_resources" : [{
    "id": "ruleset",
    "enabled": true,
    "path": "rules_1.json"
  }]
  },
  "permissions": [
    "declarativeNetRequest"
  ],
  "host_permissions": [
    "*://old.reddit.com/*",
    "*://reddit.com/*"
  ]
} 

and here is my rules_1.json:

  "id": 1,
  "priority": 1,
  "action": {
    "type": "redirect",
    "redirect": {
      "transform": { "scheme": "https", "host": "old.reddit.com" }
    }
  },
  "condition": { "urlFilter": "||reddit.com", "resourceTypes": ["main_frame"] }
}]
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