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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T19:23:15+00:00 2026-06-03T19:23:15+00:00

I am trying to do a Bookmarklet or Browser extension that will modify another

  • 0

I am trying to do a Bookmarklet or Browser extension that will modify another website when I view it, more specifically I am trying to use a Javascript Markdown editor with button bar like Stackexchange uses on another website that I do not own so I must do it with a bookmarklet or extension.

Right now I need to find the textarea on a page and replace it with a different block of code like below. The page does have jQuery so I can use that… IF you can show me how to do this I would really appreciate it, thanks

Find

<textarea rows="10" cols="50" name="description" id="description" tabindex="4"></textarea>

Replace with…

<div class="wmd-panel">
    <div id="wmd-button-bar"></div>
    <textarea class="wmd-input" id="wmd-input" name="description"></textarea>
</div>

<div id="wmd-preview" class="wmd-panel wmd-preview"></div>
  • 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-03T19:23:22+00:00Added an answer on June 3, 2026 at 7:23 pm

    Sure. we just need to simply replace the HTML, like so:

    var htmlToReplace = ' \
      <div class="wmd-panel"> \
        <div id="wmd-button-bar"></div> \
          <textarea class="wmd-input" id="wmd-input" name="description"></textarea> \
      </div> \
      <div id="wmd-preview" class="wmd-panel wmd-preview"></div>';
    
    $("#description").replaceWith(htmlToReplace)
    

    And that’ll do the trick for you.

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

Sidebar

Related Questions

I'm trying to make a JavaScript bookmarklet that will act as a highlighter, changing
I have been trying to find a bookmarklet that will allow you to view
I'm trying to create a bookmarklet which will use the jquery-ui - what steps
I am trying to make a bookmarklet that when clicked will check the URL
I'm trying to build a bookmarklet that will get the current page/article's author and
I'm trying to write a bookmarklet that will call encodeURI on the selected text
I am trying to make a bookmarklet that will return a user id for
I`m a JavaScript/programming newbie trying to figure out the new bookmarklet that's been released
I'm trying to create a bookmarklet that will start off an AJAX call to
I'm trying to make a bookmarklet that will take the URL of the current

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.