Skip to content

Instantly share code, notes, and snippets.

@LennyPenny
Last active August 29, 2015 14:07
Show Gist options
  • Save LennyPenny/dd4cfe921064464a181a to your computer and use it in GitHub Desktop.
Save LennyPenny/dd4cfe921064464a181a to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name vinhscoe
// @namespace http://dumbbbbb.com
// @updateURL https://gist.github.com/LennyPenny/dd4cfe921064464a181a/raw/d1213c7f085ad73591ca5b33fc37e3cc246b64e5/vinhsore.user.js
// @downloadURL https://gist.github.com/LennyPenny/dd4cfe921064464a181a/raw/d1213c7f085ad73591ca5b33fc37e3cc246b64e5/vinhsore.user.js
// @version 0.1
// @description enter something useful
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @match http://peniscorp.com/vinhspin/
// @copyright 2012+, You
// ==/UserScript==
var highscor = GM_getValue("highgaaaay", 0);
var toootal = GM_getValue("totallyGay", 0)
$("center").append("<br><br><span style='background-image: -webkit-gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) ); background-image: gradient( linear, left top, right top, color-stop(0, #f22), color-stop(0.15, #f2f), color-stop(0.3, #22f), color-stop(0.45, #2ff), color-stop(0.6, #2f2),color-stop(0.75, #2f2), color-stop(0.9, #ff2), color-stop(1, #f22) ); color:transparent; -webkit-background-clip: text; background-clip: text;'>Highscore</span>: <span style='color:red;'><span id='highgay'>" + highscor + "</span></span>");
$("center").append("<br>Total: <span id='totes' style='color: Fuchsia;'>" + toootal + "</span>")
var mycounter = 0;
document.getElementById( "video" ).onended = function() {
vid.play();
$("#counter" ).text(++mycounter);
GM_setValue("totallyGay", ++toootal);
$("#totes" ).text(toootal);
if (mycounter > highscor) {
highscor = mycounter;
GM_setValue("highgaaaay", highscor);
$("#highgay").text(highscor);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment