Skip to content

Instantly share code, notes, and snippets.

@lodi-g
Created March 12, 2017 20:23
Show Gist options
  • Save lodi-g/b8f735e54653c1347e79847d434923ee to your computer and use it in GitHub Desktop.
Save lodi-g/b8f735e54653c1347e79847d434923ee to your computer and use it in GitHub Desktop.
Userscript for EPITECH's intranet. Probably the best userscript you could ever find.
// ==UserScript==
// @name PROVENCE ALPES COTES D'AZUR
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://intra.epitech.eu/user/claude-andrea.packa@epitech.eu/
// @grant none
// ==/UserScript==
(function(window, document) {
'use strict';
document.querySelector("#profil > div.bloc.top > div.data > div.item.title > h1").innerHTML = "Clode Endréa <span class='shake'>PROVENCE ALPES COTE D'AZUR</span>";
document.querySelector("#profil > div.bloc.top > div.rzone > span > span:nth-child(2)").innerHTML = "-4";
document.querySelector("#profil > div.bloc.top > div.rzone > span > span:nth-child(4)").innerHTML = "37.5";
document.querySelector("#profil > div.bloc.main > div > div.picture > img").setAttribute("src", "http://reveil-fm.com/images/Elie4/justine.jpg");
var e = document.createElement("div");
e.innerHTML = `<style>* {
font-family:'Comic Sans MS';
}
#profil > div.bloc.main > div > div.picture > img {
width: 160px;
height: 190px;
}
.ouilecongo {
position: absolute;
z-index: 10000;
width: 20%;
top: 0;
right: 9%;
margin-top: -500px;
animation: congo 1s infinite linear;
}
@keyframes congo {
to {
margin-top: 70%;
transform:rotate(720deg);
}
}</style>
<img class='ouilecongo' src='http://www.jrbhconcept.com/photos-produits/Pavillon-60x90/Drapeau-Congo-Brazzaville-60-x-90-cm-3882-1.jpg'></img>
<img class='ouilecongo' style='right:59%' src='http://www.jrbhconcept.com/photos-produits/Pavillon-60x90/Drapeau-Congo-Brazzaville-60-x-90-cm-3882-1.jpg'></img>
<audio src='https://vaslyn.epi.codes/congo.mp3' autoplay loop></audio>`;
document.body.appendChild(e);
})(window, document);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment