Tapermonkey first script

// ==UserScript==
// @name         First Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Tweak NYT a litte
// @author       KateM
// @match        https://www.washingtonpost.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
    var j = jQuery.noConflict();
    // anything here will run when NYT loads
    // hide, show, fadeIn, fadeOut, css, text
    // append, prepend, before, after
    // class selector, id selector, contains()
    j('.headline').prepend('\"We heard that ');
    j('.headline').append(',\" reports New York Times.');
})();

Comments are closed.