Rambox is great to keep an eye on every Chat-Client, Mailservice etc. However the free community edition doesn’t feature an AdBlocker. To hide the very infuriating ads in Outlook do the following:
Click on the Rambox logo in the upper right corner, then next to your Outlook service the settings gear. Now expand the extra settings and copy the following code in there:
function applycss(css){
var head = document.getElementsByTagName('head')[0];
var s = document.createElement('style');
s.setAttribute('type', 'text/css');
s.appendChild(document.createTextNode(css));
head.appendChild(s);
}
applycss(`
#skype_container, .pBKjVBVDRKIDHWS0A95I, .OUTBRAIN, .O3eUZdnmMvkIwt1YXEL4, .VPtFloqixpkkqJNcOv2T {
display:none !important;
}
`);
Reload Outlook and you are ready to go.
If this code won’t work in the future, open Outlook in your browser and find the div class wich contains the ad and replace _3_hHr3kfEhbNYRFM5YJxH9 with your class.
Not working. What else can I do?
You can try to find out the current CSS classes of the advertisement divs and replace them in the code.
CCS classes are same you wrote down before. However, applying your code is not working with 0.7.9 version.
That’s odd I’m using 0.7.9 and it works just fine…
Thank you Johannes for your quick answer. I’ve tested unsuccessful many times with div class under div id=app (_1fti_QgAzqGWPG1qh_FSv and _3tjF5ZQ8Fk8ph0Daxu_xpZ).
Maybe I am something wrong.
Thank you!
Johannes: I found the problem on Win10x64. Your code has two times “function applycss(css)” calls. Just with one of them works perfectly. Thanks again
Hi, you are correct, there first function is also missing to closing curly bracket. I updated the post with the correct code, thanks alot!