Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fix Vox Articles
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Applies the correct title to VOX articles by relabelling them as opinions
- // @author https://www.reddit.com/user/nzisaacnz/
- // @match https://www.vox.com/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- var newTitle = "[OPINION] " + document.querySelector('a[href*="authors"]').innerText + ': "' + document.querySelector('h1.c-page-title').innerText + '"';
- document.querySelector('h1.c-page-title').innerText = newTitle;
- document.title = newTitle;
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement