Advertisement
nzisaacnz

Fix VOX articles

Dec 19th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Fix Vox Articles
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  Applies the correct title to VOX articles by relabelling them as opinions
  6. // @author       https://www.reddit.com/user/nzisaacnz/
  7. // @match        https://www.vox.com/*
  8. // @grant        none
  9. // ==/UserScript==
  10.  
  11. (function() {
  12.     'use strict';
  13.     var newTitle = "[OPINION] " + document.querySelector('a[href*="authors"]').innerText + ': "' + document.querySelector('h1.c-page-title').innerText + '"';
  14.     document.querySelector('h1.c-page-title').innerText = newTitle;
  15.     document.title = newTitle;
  16. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement