Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

148
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda