Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 568853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T13:13:57+00:00 2026-05-13T13:13:57+00:00

When a deprecated URL is entered in Chrome it should be changed to an

  • 0

When a deprecated URL is entered in Chrome it should be changed to an updated URL based on a regular expression or similar.

I would like to do the following

  1. Input a rule to the system that changes “olddomain.com” to “newdomain.com”
  2. Enter a URL like “olddomain.com/stuff” in Chrome
  3. Chrome changes the url to “newdomain.com/stuff” and loads the page
  4. Repeat 2 and 3

But I don’t know if it is even possible. Any hint on where to look?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T13:13:57+00:00Added an answer on May 13, 2026 at 1:13 pm

    The chosen solution were to develop a small extension for chrome, which inserts a button next to the address bar.

    The primary code is given below.

    manifest.json

    {
      "name": "My First Extension",
      "version": "1.0",
      "description": "The first extension that I made.",
      "background_page": "dostuff.html",
      "browser_action": {
        "default_icon": "icon.png"
      },
      "permissions": [
        "tabs", "http://*.google.com/", "https://*.google.com/" ]
    }
    

    dostuff.html

    <html>
      <script>
    var sciencedirectold = /sciencedirect.com\//;
    var sciencedirectnew = "sciencedirect.com.proxy1-bib.sdu.dk:2048/";
    
    function updateUrl(tab){
      if(tab.url.match(sciencedirectold))
      {
          var newurl = tab.url.replace(sciencedirectold, sciencedirectnew);
          chrome.tabs.update(tab.id, {url: newurl});
      }
    }
    
    chrome.browserAction.onClicked.addListener(function(tab) {updateUrl(tab);});
    
      </script>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Will auto_ptr be deprecated in incoming C++ standard? Should unique_ptr be used for ownership
Is there any deprecated elements and properties checker (according to w3c) like w3c validator?
I need to request the following URL inside my application: http://feedbooks.com/type/Crime%2FMystery/books/top When I run
Let say we've the following Objective : User will post certain exact URL $refere
I'm wiring the following method to my document.ready function. However, the myAutoCompleteURL.aspx URL is
As ActionController::Base#default_url_options is deprecated, I wonder how to set default url options in rails3.
I see that java.net.URLDecoder.decode(String) is deprecated in 6. I have the following String: String
So, it looks like overwrite_params is deprecated as of Rails 2.3.6. Is there a
i would like to import contacts from gmail/hotmail/yahoo to my php applications just like
Am developing an e-commerce website and would like to add a facebook like button

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.