Project 4:ERASE Ideas

Things I could erase from a website

  1. the search bar function on any page
  2. headings on pages (News pages Specifically)
  3. the title of any page
  4. any numbers (dates, etc.)
  5. remove the word “like”
  6. remove all visuals (pictures, videos, etc)
  7. remove all periods “.”
  8. remove the letter “a”

TamperMonkey HW 2.8.18

 

(function() {
    'use strict';
var j = jQuery.noConflict();

    j('a').text("LOVE ONLY: It's VDAY!");
    j('div:contains("taxpayers")').css('border','1px solid pink');
    j('div.powa-shot-image.powa-shot-click.powa-shot-click-play').fadeOut(5000);

})();

In Class Userscript


(function() {
    'use strict';

    var j = jQuery.noConflict();

    j('a.homeheadline').css('border', '3px solid blue')

    setInterval(fadeOutIn, 3000);

    function fadeOutIn() {
  j('img').fadeOut(2000, fadeBackIn);
        }
 function fadeBackIn() {
   j('img').fadeIn(1000);
 }
    j('div#content:contains("Illinois")').text("Ben Grosser did this");

})();

NEW CODE TOAD

var j = jQuery.noConflict();

<%%KEEPWHITESPACE%%>    j('.headertitle').fadeOut(3000);

j('.headertitle').fadeBackIn(3000);
    }

j('a:contains("Virtual Permit Reminder")').text('EAT BUTTS');
j('#content_wrapper').css('backgroundColor','yellow');
j('span').prepend('EAT OUR SHORTS');

})();

tampermonkey

// ==UserScript==
// @name         Second Userscript
// @namespace    mitchell
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://www.google.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
    //alert('text text text');
    var j = jQuery.noConflict();

    j('a').css('background-color','lightpink').css('font-size','25px').fadeOut(5000);
    j('.gsfi').fadeOut(3000);
    j('#gbqfbb').val('please kill me').css('font-size','40px').css('height','55px');
    j('[name=btnK]').val('deke weaver').css('font-size','40px').css('height','55px');
    j('a:contains("Gmail")').text('live fast eat ass');
    j('canvas').css('opacity','0');
    j('.st:first').fadeOut(1000);
    j('.st:nth(2)').fadeOut(2000);
    j('.st:nth(3)').fadeOut(3000);

})();

Tamper Monkey Exercise

/ ==UserScript==
// @name Crunchy Roll
// @namespace http://chaseiscool.net/
// @version 0.1
// @description Messin’ with stuff
// @author Ya boy Chase
// @match http://www.crunchyroll.com/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
‘use strict’;

var j = jQuery.noConflict();

setInterval(fadeOutIn, 3000);
function fadeOutIn() {
j(‘a.js-simulcast-series-link’).fadeOut(2000, fadeBackIn);
}

function fadeBackIn() {
j(‘a.js-simulcast-series-link’).fadeIn(); }

j(‘a’).hide();
})();

Code exercise 2/12

// ==UserScript==
// @name         Nat geo userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  tweak national geographic
// @author       connie sarantos
// @match        https://www.nationalgeographic.com/
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
var j = jQuery.noConflict();
j('.ng-globalnav').text("PUPPIES");
    j('p').hide();
       function fadeBackIn() {
  j('.mt_div-link').fadeOut();
function fadeInOut() {
    j('p').fadeOut(fadeBackIn);
j('mt_div-link').fadeIn(4545);
     setInterval(fadeInOut, 3000);
        j('#header-ad').hide();
        j('mt_div-link').fadeOut(2000, fadeBackIn);
    j('mt_div-link').fadeInOut(10000);
    j('p').fadeOut(10000);
}
}
})();

2/12 Exercise

    var j = jQuery.noConflict();
    j('a:contains("Trump")').hide();
    j('p:contains("Trump")').hide();
    j('li:contains("Trump")').hide();
    j('a').fadeOut(5000);
    j('.first-column-region').css('opacity','0');
    j('.button').hide();

2/12/2018

// ==UserScript==
// @name         JazScript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://www.aljazeera.com/*
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
    var j = jQuery.noConflict();
    j('#article-main-header').fadeOut(4000);
    j('.top-sec-desc').css('backgroundColor','red');
    j('a:contains("News")').prepend('Breaking News:');
})();

Exercise 2/12

(function() {
    'use strict';
var j = jQuery.noConflict();

    setInterval(fadeOutIn, 3000);

    function fadeOutIn(){
        j ('img').fadeOut(2000, fadeBackIn);

    function fadeBackIn(){
        j('img').fadeIn(1000);

    }
    }

    })();

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.');
})();

Code

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        https://en.wikipedia.org/wiki/Gordon_Ramsay*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';
var j = jQuery.noConflict();
   j('a').css('border', '3px solid orange');
   j('a:contains("Ramsay")').append(' thinks youre fucking shit but ');
   j('a.mw-wiki-logo').hide();
   j('p').text('PISS OF MY WIKI PAGE YOU FUCKING DONKEY');

setInterval(fadeOutIn, 3000);

setTimeout(fadeOutIn, 2000);

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

})();

Here’s a thing: code


// ==UserScript==
// @name FIE
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author me
// @match http://fie.org/*
// @match http://www.usafencing.org/*
// @grant none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
'use strict';
var j = jQuery.noConflict();
j('.bg-black').fadeOut(5000);
j('h2:contains("Fencing")').css('color', 'yellow');
j('a').append(' \nFencing is dumb tho, so who knows.');
j('p').text('meh');
j('#panelTwo').prepend('Oh? ');
})();

(function() {
    'use strict';

var j = jQuery.noConflict();

    j('h1').fadeOut(5000,fadeBackIn);

    function fadeBackIn(){
        j('h1').fadeIn(5000);
    }


    j('p').css('border','1px solid blue');

    j('h2:contains("Child Abuse")').text("Wishes He was the SuperBowl Selfie Kid");

    j('input').hide();

Tampermonkey

// ==UserScript==
// @name         second Userscript
// @namespace   seconduserscript.maggie
// @version      0.1
// @description  fuckin with cnn
// @author       maggie O'mahoney
// @match        http://www.espn.com/*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
    'use strict';

    var j =jQuery.noConflict();
    j('h1').append(', I Fucking Love Sports!');
    j('a').fadeOut();
})();

fade in, fade out


// ==UserScript==
// @name         First Userscript
// @namespace    nikyreynolds.com
// @version      0.1
// @description  try to take over the world!
// @author       Niky
// @match        https://www.w3schools.com/*
// @grant        none
// @require http://code.jquery.com/jquery-latest.js
// ==/UserScript==

(function() {
<%%KEEPWHITESPACE%%>    'use strict';

<%%KEEPWHITESPACE%%>    // Your code here...

<%%KEEPWHITESPACE%%>    // hide, show, fadeIn, fadeOut, css
<%%KEEPWHITESPACE%%>    // class, ID, contains

<%%KEEPWHITESPACE%%>    var j = jQuery.noConflict();
<%%KEEPWHITESPACE%%>    j('a').css('border','1px solid red');
<%%KEEPWHITESPACE%%>    j('.w3-bar-item:contains("Learn")').hide();

<%%KEEPWHITESPACE%%>   setInterval (OnOff, 2000);

<%%KEEPWHITESPACE%%>    function OnOff() {
<%%KEEPWHITESPACE%%>    j('h1').fadeOut(1234);
<%%KEEPWHITESPACE%%>    j('h1').fadeIn(1564);
<%%KEEPWHITESPACE%%>    j('h2').fadeOut(4242);
<%%KEEPWHITESPACE%%>    j('h2').fadeIn(4242);
<%%KEEPWHITESPACE%%>    j('h3').fadeOut(3000);
<%%KEEPWHITESPACE%%>    j('h3').fadeIn(2000);
<%%KEEPWHITESPACE%%>    }

})();

Project 3: Radical

j('li, h1, p').append(" on the blockchain");
j('span strong').prepend("Look, Bro ");
j('h2 a').append(", it was radical man");
j('.js-tweet-text-container p').append(" LET ME LIVE MY LIFE");

Project 3

j(‘a’).append(‘ and Alyssa’);

 

j(‘p’).prepend(‘ ok sooooo’);

 

j(‘a’).prepend(‘ the very best ‘);

 

j(‘li:contains(“President Trump”)’).prepend(“Fuck Face McGee”);

j(‘a:contains(“Trump”)’).prepend(” Fuck face McGee”);

Observation

I was going through my emails and unsubscribing from a bunch of different websites.  For the most part, I would receive messages such as “We are sad to see you go!”  or “Thank you for your feedback” but with this website, they immediately wanted me to opt back in.  I thought this was super strange since I had literally just unsubscribed from the emails, so why would they offer me to opt back in ten seconds after I said I wanted to opt out.

Also going with this, many websites said it could take up to ten days for you to stop receiving their emails but they instantly send you emails when you do sign up.

Project 3

j(‘div:contains(“Update on GEO Negotiations”)’).css(‘font-family’,’Comic Sans MS’);

j(‘td’).append(‘,Deal With It’)

j(‘td’).append(‘,Deal With It’).css(‘FontFace’,’Bold’)

j(‘img’).attr(‘src’,’http://thatsthefinger.com/img/share.png’);

j(‘li’,’div’).append(‘PENGOLIN’);