SHARE
TWEET

Untitled

a guest Aug 15th, 2019 81 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Hackernews
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://news.ycombinator.com/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.  
  14.     var comments = document.querySelectorAll('.comment'),
  15.         score = document.querySelectorAll('span.score');
  16.  
  17.     for ( var i = 0, len = comments.length; i < len; i++ ) {
  18.         comments[i].style.lineHeight = '20px';
  19.     }
  20.  
  21.     if ( score && score.length > 0 ) {
  22.         score[0].style.fontWeight = 'bold';
  23.     }
  24.  
  25. })();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top