Created
March 9, 2016 23:35
-
-
Save SwadicalRag/aa292da492b4f0192232 to your computer and use it in GitHub Desktop.
rainbow navbar on FLO and Student Admin
This file contains hidden or 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 A E S T H E T I C 2 | |
| // @namespace https?://stuadmin.flinders.edu.au/* | |
| // @version 1 | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @grant none | |
| // ==/UserScript== | |
| waitForKeyElements("#divBanner",function() { | |
| var clk = 0; | |
| var elem = $("#divBanner"); | |
| function meme() { | |
| clk = (Date.now() / 25) % 360; | |
| elem.attr("style","background: linear-gradient(to right, hsl(" + clk + ",100%,75%) 0%, hsl(" + (clk + 60) + ",100%,75%) 40%, hsl(" + (clk + 120) + ",100%,75%) 60%,hsl(" + (clk + 180) + ",100%,75%) 100%,hsl(" + (clk + 240) + ",100%,75%) 100%)") | |
| } | |
| setInterval(meme,50); | |
| }) |
This file contains hidden or 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 A E S T H E T I C | |
| // @namespace https?://flo.flinders.edu.au/* | |
| // @version 1 | |
| // @require https://gist.github.com/raw/2625891/waitForKeyElements.js | |
| // @grant none | |
| // ==/UserScript== | |
| waitForKeyElements("#page-header",function() { | |
| var clk = 0; | |
| var elem = $("#page-header"); | |
| function meme() { | |
| clk = (Date.now() / 25) % 360; | |
| elem.attr("style","background: linear-gradient(to right, hsl(" + clk + ",100%,75%) 0%, hsl(" + (clk + 60) + ",100%,75%) 40%, hsl(" + (clk + 120) + ",100%,75%) 60%,hsl(" + (clk + 180) + ",100%,75%) 100%,hsl(" + (clk + 240) + ",100%,75%) 100%)") | |
| } | |
| setInterval(meme,50); | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment