Last active
September 20, 2018 22:21
-
-
Save Vresod/d66dc7ea1e34206f20ff53fa77573439 to your computer and use it in GitHub Desktop.
Cool Kid Syndrome!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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