Skip to content

Instantly share code, notes, and snippets.

@Vresod
Last active September 20, 2018 22:21
Show Gist options
  • Save Vresod/d66dc7ea1e34206f20ff53fa77573439 to your computer and use it in GitHub Desktop.
Save Vresod/d66dc7ea1e34206f20ff53fa77573439 to your computer and use it in GitHub Desktop.
Cool Kid Syndrome!
// ==UserScript==
// @name Cool guy syndrome
// @namespace http://vresod.github.io
// @version 1.0
// @description cool kid sydrome
// @include *
// @author Vresod
// @grant none
// ==/UserScript==
(function() {
'use strict';
var chance = /*1 in*/ 10;
var x = Math.floor(Math.random() * (chance - 1)); // returns a random integer from 0 to chance
if (x == 0){
alert('you are a cool kid!')
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment