// ** CHANGE @NAME, @NAMESPACE, and @DESCRIPTION // // ** If using for Tampermonkey, you can just paste this into // ** the Tampermonkey editor // // ** If using for Chrome, CHANGE FIRST PART OF FILENAME // ** (before the .user.js) and edit in a code editor like Atom // // ** EVERYTHING BETWEEN ==UserScript== lines is read by the browser // as configuration information for the userscript // // ** // ** USERSCRIPT CODE IS IGNORED BY CHROME, ESP. @REQUIRE // ** BUT KEEP FOR BACKWARDS COMPATIBILITY! // ** // // ==UserScript== // @name Basic Extension // @version 1.0 // @namespace basic-extension // @description The Happiest News of All // @require http://arts445.courses.bengrosser.com/files/ready-vanilla.js // @require http://code.jquery.com/jquery-3.3.1.min.js // @run-at document-start // // **WRITE MATCH STATEMENTS TO MATCH WEBSITE URLS (FOLLOW MY EXAMPLE) // // @match *://*.buzzfeed.com/* // @include *://*buzzfeed.com/* // // ==/UserScript==// ----------------------------------------- (function() { var j; function main() { j = jQuery.noConflict(); j('h1').text("Newborn puppies who already have their degrees!"); j('h2').text("O.J Simpson? More like N.O. J Simpson!"); j('p').text("A Brief Look Into the Life of a Competitive Fly Fisher"); j("span").text('Go Outside!'); j("span.xs-ml05").text("For Real, Though"); j('a.link-gray').text("Ted Cruz opens brand new Theme Park Just Cruzin"); j("img").attr("src",'https://i.pinimg.com/736x/d7/a4/54/d7a454199acacd2d1795c312545a25eb--golden-retriever-puppies-retriever-dog.jpg'); j('li').text("Damn, I really miss Obama."); j('ul').text("The truth behind why Buzzfeed brings you the best stories"); j('h4').text("Spicy"); j("h5").text('The Government Rocks!'); j('h2.xs-px05').text("12 struggles everyone faces when it’s TOO nice outside!"); j('ul.list-unstyled').text("Look in the Mirror and Say, Dayum!"); j("h3").text('Happy Thoughts For Today'); j('a.top-link.xs-pr2').text('quiz'); j('img.buzzblock-package-visual__main-story-image').attr('src', 'https://i.imgflip.com/f4voo.jpg'); j('video.video-player').attr('src','https://www.youtube.com/watch?v=dQw4w9WgXcQ'); j('a.xs-block.link-gray').text('Kim Jong Un finally makes his first friend'); j('span.xs-col-12').text('The real reason that ‘Joey from Alpha Sigs’ won’t call you back'); j('img.xs-relative').attr('src','https://amp.businessinsider.com/images/54b445de69bedd3d4332504c-750-562.jpg'); j('h4.bold').text("yall gotta read this"); j('p.js-card__description.xs-hide').text("read this article and you'll have the best day!"); j('img.wire-frame__avatar.card__avatar.xs-mr1.circle.fill-gray-darker').attr('src', 'http://s3.amazonaws.com/pix.iemoji.com/images/emoji/apple/ios-11/256/ok-hand.png'); j('h2.wire-frame__title.bold.xs-text-3.sm-text-2.xs-pr2').text('Obama’s 10 favorite friends episodes!'); j('div.js-sidebar-content.card.sidebar-card.xs-relative.xs-border-top-none.xs-p2.clearfix').css("backgroundColor", "#98ff98"); j('div.xs-px05.sm-pl05').css("backgroundColor", "#9370DB"); j('h1.link-gray.xs-text-2.bold.xs-mb05').text("Mark Zuckerberg Doesn't Exist"); j('p.text-gray-lightest.xs-text-5').text("The news we've all been waiting for! "); j('div').css("font-family", "courier"); j('div').css("backgroundColor", "yellow"); j ('h1').css("backgroundColor", "blue"); j ('h2').css("backgroundColor", "pink"); j ('h3').css("backgroundColor", "green"); main(); String.prototype.contains = function(it) { return this.indexOf(it) != -1; }; })()