Skip to content

Instantly share code, notes, and snippets.

@martijnhartlief
Last active November 6, 2019 20:03
Show Gist options
  • Save martijnhartlief/059777f7f611181fc817470fc578ca9c to your computer and use it in GitHub Desktop.
Save martijnhartlief/059777f7f611181fc817470fc578ca9c to your computer and use it in GitHub Desktop.
Het Financieele Dagblad Witte thema (Voor gebruik met Greasemonkey / Tampermonkey)
// ==UserScript==
// @name Financieel Dagblad (Wit thema)
// @namespace http://tampermonkey.net/
// @homepage https://gist.github.com/martijnhartlief/059777f7f611181fc817470fc578ca9c
// @version 0.2
// @description Wit thema voor fd.nl
// @author Martijn Hartlief <martijn@keicreations.nl>
// @match https://fd.nl/
// @match https://fd.nl/*
// @match https://*.fd.nl/*
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==
(function() {
'use strict';
let baseBackgroundColor = '#ffffff';
let accentBackgroundColor = '#f6f6f6';
GM_addStyle('html, body, .home-page, .header-placeholder header .centered, .header-placeholder header, html.article-page {background: ' + baseBackgroundColor + ' !important}');
GM_addStyle('.radartabwrapper .radartabs, .radartabwrapper .radartabs>li, .fd-card, aside>article, aside>section, aside>nav, main>.teaser, main>section, .no-results, .related-articles, article.full .authentication-box, .article-teaser, article.teaser, .event-teaser-future, .past-events, .list-widget, .beurs-graphs, #breaking-news-alert, .follow-interests, .onboarding, .sponsors, .social-follow, .comments, .comment-message, .author-header .author, .author-links, .predefined-interests, .upsell-button-component, .upsell[data-type="TRIAL"] .main-subscriptions .subscription, .related-link, .related-pdf, .dossiers-page .highlighted-dossiers>a, .dossiers-page .recent-dossiers section, section.upsell {background: ' + accentBackgroundColor + ' !important}');
GM_addStyle('.radartabwrapper .radartabs .radartabs-li-active {border-bottom-color: ' + accentBackgroundColor + ' !important}');
GM_addStyle('aside > div {background: ' + baseBackgroundColor + ' !important}');
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment