how to regain screenspace once populated by now suppressed items?

Discussion in 'Technical Support (AdGuard for Windows)' started by Dolfi, Nov 24, 2014.

  1. Dolfi

    Dolfi Banned

    Joined:
    Nov 21, 2014
    Messages:
    218
    Hi,

    AG is great in suppressing unwanted content (not only ads, also recommendations etc).
    But AG 'only' suppresses the items, the screen space is blank (great for not having to load and not accidentially clicking).

    How can I regain that space, use it for display of content?


    (stupid) Example: http://en.wikipedia.org/wiki/Haflinger
    user filter "en.wikipedia.org###mw-panel" hides the whole left column (menu), but the screen space is blank/wasted.
    How can I move all content to the left using that space too?


    Thank you.

    ---------- Post added at 04:55 PM ---------- Previous post was at 04:48 PM ----------

    better example:
    http://9gag.com/gag/amLm9vX , filter "9gag.com###sidebar-content"
     
  2. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    It's impossible to do with just element hiding rules.
    If you're good with CSS you can use CSS-injection rules: http://adguard.com/en/filterrules.html#cssInjection

    For instance, set of rules for 9gag.com:
    Code:
    9gag.com###sidebar-content
    9gag.com#$#.page.post-page { width: 940px!important; }
    9gag.com#$#.page.post-page .main-wrap { width: 940px!important; }
    9gag.com#$#article.post-page { width: 940px!important; }
    9gag.com#$#.fixed-wrap-post-bar { width: 940px!important; }
    9gag.com#$#article.post-page .post-container img { width: 940px!important; }
    9gag.com#$#.post-afterbar-a.in-post-top { width: 940px!important; }