Skip to content

Instantly share code, notes, and snippets.

@KevCui
Last active December 18, 2020 20:07
Show Gist options
  • Save KevCui/ffbb48bb730723f8ed8bf5f5232c4b97 to your computer and use it in GitHub Desktop.
Save KevCui/ffbb48bb730723f8ed8bf5f5232c4b97 to your computer and use it in GitHub Desktop.
User style which makes Pocket list view more compact
// ==UserScript==
// @name Pocket Compact
// @author KevCui
// @include https://app.getpocket.com/*
// @run-at document-idle
// @grant none
// ==/UserScript==
function addGlobalStyle(css) {
var head, style;
head = document.getElementsByTagName('head')[0];
if (!head) { return; }
style = document.createElement('style');
style.type = 'text/css';
style.innerHTML = css;
head.appendChild(style);
}
addGlobalStyle('.css-atkiuq {grid-template-rows: repeat(auto-fit, 100px) !important;}');
addGlobalStyle('.css-1l7hmpl,.css-1fnvlgk,.css-15uygne,.css-1l7hmpl,.css-d4njwk{height: 130px !important;}');
addGlobalStyle('.css-7d05mi{font-weight: 400 !important;}');
addGlobalStyle('.css-15li0pw,.css-1gw6d3d,.css-1a4ek66,.css-7rgdve{font-size: 12px !important;}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment