This repository has been archived by the owner on Jun 4, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bandage blurry fonts on plus.google.com.
- Loading branch information
Adrian Cochrane
committed
Jan 3, 2018
1 parent
6eb8ac3
commit a56faae
Showing
5 changed files
with
35 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* This file is part of Odysseus Web Browser (Copyright Adrian Cochrane 2018). | ||
* | ||
* Odysseus is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Odysseus is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with Odysseus. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
/* Fix for the blurriness of Google Plus's fonts. | ||
Not really something I want to build into Odysseus as I'd rather focus it should | ||
focus on making the whole web better, not just specific sites. Besides | ||
this only covers the symptoms, and not the real issue. */ | ||
namespace Odysseus.Traits { | ||
public void fix_google_plus(WebKit.WebView web) { | ||
var css = new WebKit.UserStyleSheet("* {font-family: sans-serif;}", | ||
WebKit.UserContentInjectedFrames.TOP_FRAME, | ||
WebKit.UserStyleLevel.USER, | ||
new string[] {"https://plus.google.com/*"}, new string[0]); | ||
web.user_content_manager.add_style_sheet(css); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters