diff --git a/src/Services/Prosody/expression.vala b/src/Services/Prosody/expression.vala index 7fc9b0f..6e3101e 100644 --- a/src/Services/Prosody/expression.vala +++ b/src/Services/Prosody/expression.vala @@ -1,5 +1,5 @@ /** -* This file is part of Odysseus Web Browser (Copyright Adrian Cochrane 2017). +* This file is part of Odysseus Web Browser (Copyright Adrian Cochrane 2017-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 diff --git a/src/Services/Prosody/i18n.vala b/src/Services/Prosody/i18n.vala index d7c958d..18e599a 100644 --- a/src/Services/Prosody/i18n.vala +++ b/src/Services/Prosody/i18n.vala @@ -1,5 +1,5 @@ /** -* This file is part of Odysseus Web Browser (Copyright Adrian Cochrane 2017). +* This file is part of Odysseus Web Browser (Copyright Adrian Cochrane 2017-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 diff --git a/src/Traits/decorate/fix-plus.google.com.vala b/src/Traits/decorate/fix-plus.google.com.vala new file mode 100644 index 0000000..94f2cd3 --- /dev/null +++ b/src/Traits/decorate/fix-plus.google.com.vala @@ -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 . +*/ +/* 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); + } +} diff --git a/src/Traits/init.vala b/src/Traits/init.vala index d8388a5..1f01b3f 100644 --- a/src/Traits/init.vala +++ b/src/Traits/init.vala @@ -49,6 +49,7 @@ namespace Odysseus.Traits { setup_persist_tab_history(tab); setup_internal_favicons(tab); setup_autoscroll(tab.web); + fix_google_plus(tab.web); } public void setup_autosuggest() { diff --git a/src/meson.build b/src/meson.build index f5ac041..9ade747 100644 --- a/src/meson.build +++ b/src/meson.build @@ -6,7 +6,8 @@ overlay_widgets = ['FindToolbar', 'InfoContainer'] traits = ['init', 'download-progress', 'download-window'] nav_traits = ['viewsource', 'errors', 'autodownload', 'persist-tab-history', 'newtab'] -decor_traits = ['alert', 'permit', 'settings', 'internal-favicons', 'AutoScroll'] +decor_traits = ['alert', 'permit', 'settings', 'internal-favicons', 'AutoScroll', + 'fix-plus.google.com'] complete_traits = ['imply-http', 'duckduckgo', 'ddg-autocomplete'] services = ['pages', 'Completer', 'globals', 'icons'] db_services = ['database', 'util']