Skip to content
This repository has been archived by the owner on Jun 4, 2022. It is now read-only.

Commit

Permalink
Generalize Google+ style fix to all sites.
Browse files Browse the repository at this point in the history
-webkit-font-smoothing seems to be way too technical of a CSS property
for web developers to use correctly.
  • Loading branch information
Adrian Cochrane committed Jan 3, 2018
1 parent 93f4dd2 commit 9604271
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Traits/decorate/fix-plus.google.com.vala
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ Not really something I want to build into Odysseus as I'd rather focus it should
namespace Odysseus.Traits {
public void fix_google_plus(WebKit.WebView web) {
var css = new WebKit.UserStyleSheet("* {-webkit-font-smoothing: subpixel-anialiased;}",
WebKit.UserContentInjectedFrames.TOP_FRAME,
WebKit.UserContentInjectedFrames.ALL_FRAMES,
WebKit.UserStyleLevel.USER,
new string[] {"https://plus.google.com/*"}, new string[0]);
new string[] {"*"}, new string[0]);
web.user_content_manager.add_style_sheet(css);
}
}

0 comments on commit 9604271

Please sign in to comment.