Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

146
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!