Project 4 Redo

 // ==UserScript==
 // @name Basic Userscript Template
 // @version 1.0
 // @namespace basic-userscript-template
 // @description demonstrates a userscript method for altering websites
 // @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 *://*.en.wikipedia.org/wiki/Donald_Trump*

// @include *://*.wikepedia.org*
 //
 // ==/UserScript==// -----------------------------------------
 //
 //
 //
 //
 // Basic Userscript Template
 //

 (function() {

// jQuery on 'j' to avoid conflicts with page jQuery
 var j;

// PUT YOUR CODE within main() below
 function main() {

j = jQuery.noConflict();

var j = jQuery.noConflict();

j('a').each(function() { redBorder(this); });

ready('a', function(e) { redBorder(e); });

function redBorder(e) {
 j(e).css('border','1px solid red');
 }
 j ('b').remove();
 j ('span').css("opacity","0");
 j ('h1').css("backgroundColor", "black") ;

setInterval(fadeOutIn,500);

function fadeOutIn () {
 j ('img').fadeOut(400,fadeBackIn);
 }
 function fadeBackIn () {
 j('img').fadeIn(300);
 }

}

main();

String.prototype.contains = function(it) { return this.indexOf(it) != -1; };

})();

Comments are closed.