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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T13:43:36+00:00 2026-05-27T13:43:36+00:00

I am writing a custom script for a forum I frequently visit. It is

  • 0

I am writing a custom script for a forum I frequently visit. It is designed to remove signatures from the board when I view it because they are distracting and annoying and they have no way to disable them in the options.

Anyway, I can run custom scripts using a helpful Chrome extension. I am able to modify any portions of the page where HTML nodes have classes, IDs, or even attributes with a little bit of unique information, but I can’t seem to figure out how to select and remove the following HTML with jQuery.

    <tr>
      <td colspan="2">
        <!--Signature-->
            <div class="resultText">
                <!-- sig -->
                    <div>Signature text</div>
                <!-- / sig -->

            </div>
      </td>
    </tr>

If there was a way I could grab the parent of <!--Signature--> that would be perfect but I’m not sure that’s even possible.

There is one class resultText but that class is used wherever there is text entered by the user, not just in the signature. So I can’t grab onto that.

  • 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-27T13:43:36+00:00Added an answer on May 27, 2026 at 1:43 pm

    You can use .contents() to get all the child nodes of an element: http://api.jquery.com/contents

    From the docs:

    Get the children of each element in the set of matched elements,
    including text and comment nodes.

    $('tr').each(function (index, obj) {
        $(this).children('td').contents();//this selects all the nodes in each TD element in the table, including comment nodes
    });
    

    Here is a demo: http://jsfiddle.net/NLhz9/1/

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

Sidebar

Related Questions

I am writing a custom .pac script for use with Firefox. Following numerous examples
I am writing a script that will look in a custom reports directory, copy
I am writing a release script in powershell and need to invoke a custom
I am writing a script in PHP to get data from the twitter API,
I'm writing a bulk insert script using Django's ORM + custom raw SQL. The
I'm writing a BASH script to integrate our company's custom intranet with our postfix
Writing an application for a custom gallery, and all the script files are put
I have a custom component I'm working on and I'm writing an import script
I'm writing a script to download gzipped XML sitemaps; the files download, but they
Does anyone know if there is an easy way, aside from writing a custom

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.