# How do I block a website element using a rule in the browser?

**URL:** <https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547>\
**Category:** Ad-Blocking\
**Created:** [May 6, 2022, 4:23pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547 "2022-05-06T16:23:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 4:23pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/1 "2022-05-06T16:23:30Z")

</div>

I hope this makes sense and hopefully someone can help me out.

There are some annoying things on a website I visit frequently that I would like to block. They are Twitter or Facebook share buttons that get blocked when I have Ublock Origin on, but appear when I turn it off.

So I looked at which filterlist was blocking them (Fanboy’s Annoyance) and tried to copy and paste the rule into Brave:

##.share\_\_button  
##.shareBar

and things like that. But they don’t end up getting blocked.

Any idea what I can do?

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 6, 2022, 4:38pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/2 "2022-05-06T16:38:59Z")

</div>

Hello @Sluggo

the fanboy’s can be activated go to `brave://adblock/` and check it

also check this for rule

> **[How to write filters
  
    | Adblock Plus Help Center](https://help.eyeo.com/en/adblockplus/how-to-write-filters#content-filters)**
>
> Creating your own filters gives you more control over the things you want to see and don’t want to see on the websites that you visit, including ads, images, requests, and scripts.

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 5:39pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/3 "2022-05-06T17:39:46Z")

</div>

I’m subscribed to the Fanboy’s list but it doesn’t block these Facebook and Twitter buttons unless I have Ublock Origin turned on.

 ![Untitled-3](https://global.discourse-cdn.com/brave/original/3X/2/1/21d1ffc267cdb12a53798e74e74b55b697953d47.jpeg)

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 6, 2022, 5:45pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/4 "2022-05-06T17:45:15Z")

</div>

go to `brave://settings/socialBlocking` and uncheck all social network

if did not help could you share a link so i can test it

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 6:01pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/5 "2022-05-06T18:01:06Z")

</div>

Sorry, the website is [https://instapundit.com/519023/#respond](https://instapundit.com/519023/#respond)

With Ublock Origin turned on, those circled items are blocked. With it turned off they appear, even if I’m subscribed to Fanboys within Brave.

So I copied the rules from Fanboy’s list:

##.share\_\_button-container  
##.comment-share\_\_buttons  
##.comment\_\_share  
##.thread-share-bar-buttons

And pasted them in Brave’s adblock but they still won’t disappear.

---

<div class="post-metadata">

**Author:** ![Chocoholic](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/chocoholic/32/114357_2.png) [@Chocoholic](https://community.brave.app/u/Chocoholic)\
**Post date:** [May 6, 2022, 6:18pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/6 "2022-05-06T18:18:01Z")

</div>

Just want to find out if this Help Center topic is about the same thing. It relates to me, but I am frequently wrong about this sort of thing. 😛

> **[How do I block additional page elements?](https://support.brave.com/hc/en-us/articles/360018039072-How-do-I-block-additional-page-elements-)**
>
> (Note: At the time of writing this article this feature is still a work in progress and does not necessarily reflect the final design or implementation.)
> While Brave blocks 3rd party ads and other ...

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 6:43pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/7 "2022-05-06T18:43:42Z")

</div>

Not sure. I can’t figure it out using the inspector. If anyone can figure out how to block these things that would be a great help.

---

<div class="post-metadata">

**Author:** ![Chocoholic](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/chocoholic/32/114357_2.png) [@Chocoholic](https://community.brave.app/u/Chocoholic)\
**Post date:** [May 6, 2022, 6:46pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/8 "2022-05-06T18:46:23Z")

</div>

If you right click on the page, it is in the sub-menu. Brave → Block element

![image](https://global.discourse-cdn.com/brave/original/3X/7/2/72ac2d43bb170096ad303439c426945ffddbc300.png)

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 6:48pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/9 "2022-05-06T18:48:31Z")

</div>

Did you try that on the page I gave? It doesn’t work.

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 6, 2022, 6:49pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/10 "2022-05-06T18:49:20Z")

</div>

let me ask @fanboynz to help you with that  
as the element already inside an iframe so not sure how we handle it

and have a nice day both of you 🙂

---

<div class="post-metadata">

**Author:** ![Chocoholic](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/chocoholic/32/114357_2.png) [@Chocoholic](https://community.brave.app/u/Chocoholic)\
**Post date:** [May 6, 2022, 6:50pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/11 "2022-05-06T18:50:34Z")

</div>

I didn’t, but I’ve tried it on other pages and it works. I just want to know if this is the same function as @justsomeone1 is talking about without using the [help.eyeo.com](http://help.eyeo.com) article. Just seems easier (if it worked).

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 6:51pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/12 "2022-05-06T18:51:02Z")

</div>

Thanks. Hopefully he’ll reply.

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 6, 2022, 6:53pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/13 "2022-05-06T18:53:36Z")

</div>

it does not work with all use case try to do it with the link he mentioned and you will see a funny behavior of the mouse to select it and it actually select the iframe element which those button part of it

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 6, 2022, 7:06pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/14 "2022-05-06T19:06:23Z")

</div>

Thanks for looking. For some reason it does all sorts of weird highlighting on the page. I think because those buttons are buried inside of something else. Hopefully they can do this for me. I’d like to use Brave alone without Ublock and that’s one of my most visited sites.

---

<div class="post-metadata">

**Author:** ![Chocoholic](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/chocoholic/32/114357_2.png) [@Chocoholic](https://community.brave.app/u/Chocoholic)\
**Post date:** [May 6, 2022, 7:39pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/15 "2022-05-06T19:39:45Z")

</div>

> [@justsomeone1](#):
>
> try to do it with the link he mentioned

I see what you mean. A nightmare. Not doable.

> [@Sluggo](#):
>
> For some reason it does all sorts of weird highlighting on the page. I think because those buttons are buried inside of something else.

I think so too! See above for additional comments. lol

I just don’t have the heart at this time to learn any programming, scripts, commands, or whatever else you call this type thing. I see those special characters and strings of information and my brain shuts down and my head starts to hurt! Iol

I like that block element tool and find it easy to use. I just wish it worked in all cases! I actually like using the filters, so this isn’t a problem for me. I hope a solution or workaround can be found for you!

---

<div class="post-metadata">

**Author:** ![mckealty](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@mckealty](https://community.brave.app/u/mckealty)\
**Post date:** [May 8, 2022, 1:34pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/16 "2022-05-08T13:34:19Z")

</div>

Is @fanboynz still active? I’d like to do this as well on some other websites.

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 8, 2022, 3:11pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/17 "2022-05-08T15:11:35Z")

</div>

it’s sunday so it’s weekend so give it sometime

---

<div class="post-metadata">

**Author:** ![Sluggo](https://sea1.discourse-cdn.com/brave/user_avatar/community.brave.app/sluggo/32/70725_2.png) [@Sluggo](https://community.brave.app/u/Sluggo)\
**Post date:** [May 8, 2022, 4:21pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/18 "2022-05-08T16:21:27Z")

</div>

To be fair, I posted this question a month ago and he replied once and never got back…

> [@Block something using browser instead of Ublock Origin](https://community.brave.app/t/block-something-using-browser-instead-of-ublock-origin/368569/4):
>
> Any thoughts on how I can do this?

---

<div class="post-metadata">

**Author:** ![justsomeone1](https://avatars.discourse-cdn.com/v4/letter/j/45deac/32.png) [@justsomeone1](https://community.brave.app/u/justsomeone1)\
**Post date:** [May 8, 2022, 6:03pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/19 "2022-05-08T18:03:12Z")

</div>

hope you get the answer soon 🙂

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/brave/original/3X/1/8/182067f3480d1a5e7aea5ae3131b116ca1ef7918.png) [@system](https://community.brave.app/u/system)\
**Post date:** [June 7, 2022, 6:03pm UTC](https://community.brave.app/t/how-do-i-block-a-website-element-using-a-rule-in-the-browser/386547/20 "2022-06-07T18:03:20Z")

</div>

Closed on June 7, 2022, 6:03pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
