NewsBlur/blog/_site/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/index.html

137 lines
9.4 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="shortcut icon" href="https://newsblur.com/media/img/favicon.ico" type="image/png" />
<link rel="icon" href="https://newsblur.com/media/img/favicon_32.png" sizes="32x32"/>
<link rel="icon" href="https://newsblur.com/media/img/favicon_64.png" sizes="64x64"/>
<link rel="alternate" type="application/rss+xml"
title="The NewsBlur Blog RSS feed"
href="/feed.xml" /><!-- Begin Jekyll SEO tag v2.7.1 -->
<title>Add your own Custom CSS and Custom JavaScript to NewsBlur on the web | The NewsBlur Blog</title>
<meta name="generator" content="Jekyll v4.2.0" />
<meta property="og:title" content="Add your own Custom CSS and Custom JavaScript to NewsBlur on the web" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Ever wanted to customize NewsBlur on the web but didnt want to install custom browser extensions so you could shoe-horn in monkey-patched code? And if you did use a browser extension, didnt you just hate having to keep it synchronized between your computers? Just for you, NewsBlur now has two new fields: Custom CSS and Custom Javascript." />
<meta property="og:description" content="Ever wanted to customize NewsBlur on the web but didnt want to install custom browser extensions so you could shoe-horn in monkey-patched code? And if you did use a browser extension, didnt you just hate having to keep it synchronized between your computers? Just for you, NewsBlur now has two new fields: Custom CSS and Custom Javascript." />
<link rel="canonical" href="https://blog.newsblur.com/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/" />
<meta property="og:url" content="https://blog.newsblur.com/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/" />
<meta property="og:site_name" content="The NewsBlur Blog" />
<meta property="og:type" content="article" />
<meta property="article:published_time" content="2017-05-22T05:00:41-04:00" />
<meta name="twitter:card" content="summary" />
<meta property="twitter:title" content="Add your own Custom CSS and Custom JavaScript to NewsBlur on the web" />
<script type="application/ld+json">
{"@type":"BlogPosting","publisher":{"@type":"Organization","logo":{"@type":"ImageObject","url":"https://blog.newsblur.com/assets/newsblur_logo_512.png"}},"headline":"Add your own Custom CSS and Custom JavaScript to NewsBlur on the web","dateModified":"2017-05-22T05:00:41-04:00","datePublished":"2017-05-22T05:00:41-04:00","mainEntityOfPage":{"@type":"WebPage","@id":"https://blog.newsblur.com/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/"},"description":"Ever wanted to customize NewsBlur on the web but didnt want to install custom browser extensions so you could shoe-horn in monkey-patched code? And if you did use a browser extension, didnt you just hate having to keep it synchronized between your computers? Just for you, NewsBlur now has two new fields: Custom CSS and Custom Javascript.","url":"https://blog.newsblur.com/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/","@context":"https://schema.org"}</script>
<!-- End Jekyll SEO tag -->
<link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" type="text/css" href="https://cloud.typography.com/6565292/711824/css/fonts.css" />
<link rel="stylesheet" type="text/css" href="https://cloud.typography.com/6565292/731824/css/fonts.css" /><link type="application/atom+xml" rel="alternate" href="https://blog.newsblur.com/feed.xml" title="The NewsBlur Blog" /></head>
<body><header class="site-header" role="banner">
<div class="wrapper"><a class="site-title" rel="author" href="/">
<div class="site-title-image">
<img src="/assets/newsblur_logo_512.png">
</div>
<div class="site-title-text">The NewsBlur Blog</div>
</a><nav class="site-nav">
<input type="checkbox" id="nav-trigger" class="nav-trigger" />
<label for="nav-trigger">
<span class="menu-icon">
<svg viewBox="0 0 18 15" width="18px" height="15px">
<path d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.032C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.032C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484 C0.665,15,0,14.335,0,13.516l0,0c0-0.82,0.665-1.483,1.484-1.483h15.032C17.335,12.031,18,12.695,18,13.516L18,13.516z"/>
</svg>
</span>
</label>
<div class="trigger"><a class="page-link" href="https://www.newsblur.com">Visit NewsBlur ➤</a></div>
</nav></div>
</header>
<header class="site-subheader" role="banner">
<div class="wrapper">
<div class="top">
NewsBlur is a personal news reader that brings people together to talk about the world.
</div>
<div class="bottom">
A new sound of an old instrument.
</div>
</div>
</header>
<main class="page-content" aria-label="Content">
<div class="wrapper">
<article class="post h-entry" itemscope itemtype="http://schema.org/BlogPosting">
<header class="post-header">
<h1 class="post-title p-name" itemprop="name headline">Add your own Custom CSS and Custom JavaScript to NewsBlur on the web</h1>
<p class="post-meta">
<time class="dt-published" datetime="2017-05-22T05:00:41-04:00" itemprop="datePublished">May 22, 2017
</time></p>
</header>
<div class="post-content e-content" itemprop="articleBody">
<p>Ever wanted to customize NewsBlur on the web but didnt want to install custom browser extensions so you could shoe-horn in monkey-patched code? And if you did use a browser extension, didnt you just hate having to keep it synchronized between your computers? Just for you, NewsBlur now has two new fields: Custom CSS and Custom Javascript.</p>
<p>Head to <em>Manage &gt; Account &gt; Custom CSS/JS</em>. And heres what you can do with this new feature.</p>
<p><strong>Install an unofficial dark theme for NewsBlur</strong></p>
<figure class="tmblr-full" data-orig-height="960" data-orig-width="1098" data-orig-src="https://userstyles.org/style_screenshots/124890_after.png"><img style="width: 650px;" data-orig-height="960" data-orig-width="1098" src="https://userstyles.org/style_screenshots/124890_after.png" /></figure>
<p>Over on Stylish, a community for custom CSS, there are <a href="https://userstyles.org/styles/browse?search_terms=newsblur">a bunch of stylesheets that change how NewsBlur looks</a>. Have you ever wanted a dark theme? Theres a few and <a href="https://userstyles.org/styles/124890/newsblur-dark-theme-by-splike">the most popular is made by NewsBlur user Splike</a>. (Note: you will have to remove the @moz delcaraction along with the surrounding {}s at the top and bottom lines.)</p>
<p><strong>Hide that module or link that you dont want to see on NewsBlur</strong></p>
<figure class="tmblr-full" data-orig-height="1033" data-orig-width="1300" data-orig-src="https://s3.amazonaws.com/static.newsblur.com/blog/custom-css.png"><img style="width: 650px;" data-orig-height="1033" data-orig-width="1300" src="https://s3.amazonaws.com/static.newsblur.com/blog/custom-css.png" /></figure>
<p>Dont like seeing Global Shared Stories or the River of News on the Dashboard? You can hide them with this little bit of CSS:</p>
<div class="language-plaintext highlighter-rouge"><div class="highlight"><pre class="highlight"><code>/* Hides the Global Shared Stories feed */
.NB-feeds-header-river-global-container {
display: none !important;
}
/* Hides the Dashboard River */
.NB-module-river {
display: none !important;
}
</code></pre></div></div>
<p><strong>Run a custom script</strong></p>
<p>Ok, to be 100% truthful, I have no idea why youd want to run custom JavaScript on NewsBlur. But if you figure out a reason please let me know! Either <a href="http://samuel@newsblur.com">shoot me an email</a> or mention it to <a href="https://twitter.com/newsblur">@newsblur on Twitter</a>.</p>
</div><a class="u-url" href="/2017/05/22/add-your-own-custom-css-and-custom-javascript-to/" hidden></a>
</article>
</div>
</main><footer class="site-footer h-card">
<data class="u-url" href="/"></data>
<div class="wrapper">
<h2 class="footer-heading">The NewsBlur Blog</h2>
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1"><ul class="social-media-list"><li><a href="https://github.com/samuelclay"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#github"></use></svg> <span class="username">samuelclay</span></a></li><li><a href="https://www.twitter.com/newsblur"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#twitter"></use></svg> <span class="username">newsblur</span></a></li><li><a href="mailto:blog@newsblur.com?subject=Hello from the NewsBlur blog"><svg class="svg-icon"><use xlink:href="/assets/minima-social-icons.svg#email"></use></svg> <span class="username">blog@newsblur.com</span></a></li></ul>
</div>
<div class="footer-col footer-col-3">
<p>NewsBlur is a personal news reader that brings people together to talk about the world.<br />
A new sound of an old instrument.<br />
</p>
</div>
</div>
</div>
</footer>
</body>
</html>