[Resolved] Outlook right ad placeholder

Discussion in 'Custom Filters' started by Boo Berry, Oct 19, 2014.

  1. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Can a rule be added to the filters that will remove the blank ad placeholder on the right side of outlook.com? Of course there are userscripts that'll do this but I'd rather do it with a filter rule. Plus Outlook users will probably appreciate it being removed by default too. ;)

    Thanks!
     
    Last edited by a moderator: Oct 19, 2014
  2. Alex302

    Alex302 Filters Developer Staff Member Administrator

    Joined:
    Jul 20, 2012
    Messages:
    22,975
  3. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    It's the blank area on the right in your screenshot - it's right of the scrollbar. If you use the userscript it removes this area for you, but I'm thinking perhaps a filter rule would be better (and *maybe* work for the browser extensions).
     
    Last edited by a moderator: Oct 19, 2014
  4. Nameless

    Nameless Beta Tester

    Joined:
    Mar 19, 2014
    Messages:
    731
    Dont know how to add, change or remove css but what you need to do is disable right: 160px;

    Code:
    class="ContentRight WithRightRail RPOff"
    
    .WithRightRail {
    min-width: 428px;
    right: 160px;
    
    here is the code from the script boo knows:
    Code:
    (function() {
    var css = "#MainContent { width:100% !important; }\n\n#RightRailContainer { display: none !important; }\n\n.WithRightRail { right: 0px !important; }";
    if (typeof GM_addStyle != "undefined") {
    	GM_addStyle(css);
    } else if (typeof PRO_addStyle != "undefined") {
    	PRO_addStyle(css);
    } else if (typeof addStyle != "undefined") {
    	addStyle(css);
    } else {
    	var node = document.createElement("style");
    	node.type = "text/css";
    	node.appendChild(document.createTextNode(css));
    	var heads = document.getElementsByTagName("head");
    	if (heads.length > 0) {
    		heads[0].appendChild(node); 
    	} else {
    		// no head yet, stick it whereever
    		document.documentElement.appendChild(node);
    	}
    }
    })();
    
    Yes i had a play but couldnt get it to work correctly.
     
    Last edited by a moderator: Oct 20, 2014
  5. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    Code:
    mail.live.com###RightRailContainer
    mail.live.com#$#.WithRightRail { min-width: auto!important; right: 0px!important; }
    
     
  6. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Okay, those rules seem to be working fine in both Adguard For Windows and the browser extensions so the question becomes should they be added to the default filters? After all it is removing an ad's placement.
     
    Last edited by a moderator: Oct 21, 2014
  7. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    Are you sure it is used for ads only?
     
  8. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Yep, it is.
     
  9. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    Ok, I'll add these rules to english filter.

    Thank you!
     
  10. freshhh

    freshhh Active Member

    Joined:
    Nov 25, 2014
    Messages:
    2,307
    It does not work for me!

    I still have the blank ad placeholder on the right side...

    Source of this container: dub124.mail.live.com|id=RightRailContainer&class=c-RightRail RightRailContainerWidth t_sbgc

    Also, like reported before (http://forum.adguard.com/showthread.php?3248-dub124-mail-live-com), the dynamic separator is not usable if filters are enabled.
     
    Last edited by a moderator: Nov 26, 2014
  11. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Try using just the English filter as a test. I'm thinking some of the issues you're encountering is because you're using too many filter lists.
     
  12. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Looks like Microsoft has broken this with an Outlook update. Avatar, can you come up with an updated solution to the rule?
     
    Last edited by a moderator: Dec 3, 2014
  13. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    Still works for me. Please show the updated layout.
     
  14. freshhh

    freshhh Active Member

    Joined:
    Nov 25, 2014
    Messages:
    2,307
    Layout has not been updated but if filter enabled, container is gone but cannot read emails and cannot click to disconnect. Also cannot use the dynamic separator (line).
     
  15. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    All those works fine for me here, hmmm. The issue I was experiencing which caused the issue was fixed.
     
  16. freshhh

    freshhh Active Member

    Joined:
    Nov 25, 2014
    Messages:
    2,307
    It works for me too now.
    I hope it will last...
     
  17. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    Hope so too, Outlook works great in IE11 here. :)
     
  18. freshhh

    freshhh Active Member

    Joined:
    Nov 25, 2014
    Messages:
    2,307
    Stopped working today. :-(
     
  19. avatar

    avatar Administrator Staff Member Administrator

    Joined:
    Oct 26, 2010
    Messages:
    12,891
    And what if you disable your User Filter?
    I suspect these rules may disable filtering of this page:
    Code:
    @@||outlook.com^$jsinject
    @@||dub*.mail.live.com$document
    
     
  20. Boo Berry

    Boo Berry Moderator + Beta Tester Moderator

    Joined:
    May 30, 2012
    Messages:
    3,210
    It also could be the extensions freshhh is using too with IE11 causing issues, e.g. Anti-Adblock Killer.