Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adblock plus - hide part of css style or change class name? [closed]

Tags:

html

css

adblock

Adblock hides the adverts on http://www.outlook.com but leaves an empty sidebar which i want to remove There are 2 methods i found to remove the sidebar manually but i want to do it with adblock plus

Method 1: the sidebar div is set as:

<div id="contentRight" class="ContentRight WithSkyscraper">

by removing WithSkyscraper from the class the sidebar is hidden.

Method 2: The other way of doing it is in the css file there is a class:

.App.Unmanaged .ContentRight.WithSkyscraper #ManagedContentWrapper
{
padding-right:160px;
}

by deleting padding-right or changing 160px to 0px the sidebar also hides

is it possible to do one of these 2 methods with adblock plus? Or is there another addon that could be used

Thanks for your help

like image 785
braza Avatar asked Aug 05 '12 08:08

braza


People also ask

What is element hiding filters?

Element hiding filters are designed to indicate which element in the page are to be hidden. Snippet filters are used to run snippets of code in the page to defeat more complex advertising display.

What are Adblock filters?

Virtually all ad blocking browser extensions, including AdBlock, use rules to determine what should be blocked and hidden on web pages you visit. These rules are also known as filters, and they are provided in collections called filter lists.


1 Answers

I installed the addon Stylish on to firefox and created my own style to change the width to 0px

.App.Unmanaged .ContentRight.WithSkyscraper #ManagedContentWrapper 
{
padding-right: 0px !important;
}
like image 56
braza Avatar answered Sep 26 '22 00:09

braza