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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T15:16:09+00:00 2026-06-02T15:16:09+00:00

I want to do this the simplest way possible, I don’t mind if it

  • 0

I want to do this the simplest way possible, I don’t mind if it allows the element to load THEN hides it. Basically I want to do a different take than what’s been done before for YouTube comment blockers but I can’t figure out how to actually get my extension to block comments. I know limited HTML/CSS/JavaScript but I’m just not sure where to start. I already know what elements need to be consistently removed from the page but don’t know how to tell chrome to hide them.

EDIT: To go into further if possible I’d like to blog certain sections in the HTML based on their <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-02T15:16:11+00:00Added an answer on June 2, 2026 at 3:16 pm

    Here is my Facebook Ads disabler:

    manifest.json

    {
      "name": "Facebook Ads Disabler",
      "version": "0.0.1",
      "description": "Disable side ads on facebook! By Alexander Piechowski.",
      "content_scripts": [
        {
            "matches": [
            "http://*.facebook.com/*","https://*.facebook.com/*"],
            "js": ["main.js"],
            "run_at": "document_end",
            "all_frames": true
        }
      ]
    }
    

    main.js

    function remove(){
    try
      {
        document.getElementById('pagelet_ego_pane_w').innerHTML = '';
      }
    catch(err)
      {
        //Skip if "pagelet_ego_pane_w" div tag isn't on this page
      }
      try
      {
            document.getElementById('pagelet_ego_pane').innerHTML = '';
      }
    catch(err)
      {
        //Skip if "pagelet_ego_pane" div tag isn't on this page
      }
        try
      {
            document.getElementById('pagelet_side_ads').innerHTML = '';
      }
    catch(err)
      {
        //Skip if "pagelet_side_ads" div tag isn't on this page
      }
          try
      {
            document.getElementById('fbPhotoSnowliftAdsSide').innerHTML = '';
      }
    catch(err)
      {
        //Skip if "fbPhotoSnowliftAdsSide" div tag isn't on this page
      }
    console.log('All ads have been removed.');
    setTimeout(function(){remove();},2000);
    }
    remove();
    

    This makes all the inside of the ID’s completely blank and re-runs every 2 seconds for when I go to new pages within facebook.

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

Sidebar

Related Questions

I'd like to come up with the simplest way possible to create an enormous
Basically, what I want to do is something like this: template<typename x,typename y,typename z>
Looking for the simplest way to get a single value from a database. This
I want this : I am building a few screens where I will have
I want this javascript to create options from 12 to 100 in a select
I want this link to have a JavaScript dialog that asks the user Are
I want this url http://www.youtube.com/watch?v=dgNgODPIO0w&feature=rec-HM-fresh+div to be transformed to: http://www.youtube.com/v/dgNgODPIO0w with php.
I want this: http://jqueryui.com/demos/dialog/#modal-message to happend when you click on ClickMe. how to do
I want this for some conditional compilation code that will run in all IE's
I want this to be on top... how can I do this and not

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.