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 7833807
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T12:54:11+00:00 2026-06-02T12:54:11+00:00

This is my first app so please pardon my lack of knowledge. As a

  • 0

This is my first app so please pardon my lack of knowledge. As a demo app i would like to achieve the following things :

Stage 1 :

1 Read the contents of a page

2 Look for a regex match in the contents of that page

3 Replace them with something else

Stage 2 :

1 On submitting () text to a web page

2 Read the text that’s about to get submitted

3 Look for a regex and replace it .

Could some one point in the direction of a similar app or make a small guide ? Any help is appreciated .

  • 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-06-02T12:54:17+00:00Added an answer on June 2, 2026 at 12:54 pm

    first of all, you need to insert a Content Script, the only way to access the page’s content.

    http://code.google.com/chrome/extensions/content_scripts.html

    You can make a content script only extension to begin, but for more advanced extensions you should read about programmatic injection.

    http://code.google.com/chrome/extensions/content_scripts.html#pi

    From a content script you can access the page’s DOM, and add listener to events in the usual way. For example, you can use document.getElementById() or element.addListener() .

    There are many ways to look for a regexp, it depends the way you want to search the page, for example yo can use

    document.body.innerHTML.replace(...);
    

    Rob W gave you a nice hint to intercept submitting text with
    chrome.webRequest

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How to create in-app step by step instructions? Like this ( first boot android
Bear with me, as this is my first Android app. :) Essentially, I would
This will be my first iOS app with any bit of complexity. I'd like
This is my first rails app deploy, so please forgive me if the solution
Im building my first app in rails and I would like to call Flickr's
this is my first app and I am trying to help out a business
This is my first app using storyboards/segues, and I'm pretty sure the answer to
This is my first app with CI and I want to know whether $_POST
This is my first winform app in .NET... I have made a couple of
Okay this is my first WPF app and I am having a hard run

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.