Skip to content

Instantly share code, notes, and snippets.

@duke79
Forked from pulkit-singh-shipsy/main.js
Created September 27, 2021 10:40
Show Gist options
  • Save duke79/98dd8f6f491ef37abde23f7974bfeaa6 to your computer and use it in GitHub Desktop.
Save duke79/98dd8f6f491ef37abde23f7974bfeaa6 to your computer and use it in GitHub Desktop.
fur elise on deployment
// ==UserScript==
// @name Deployment - fur elise
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://jenkins.shipsy.in/blue/organizations/jenkins/*
// @icon https://www.google.com/s2/favicons?domain=shipsy.in
// @grant none
// ==/UserScript==
(function() {
'use strict';
var checkExist = setInterval(function() {
var success = document.querySelector('.svgResultStatus .circle-bg.success');
if (success) {
console.log('deployed! playing music!');
var audio = new Audio('https://www.mfiles.co.uk/mp3-downloads/fur-elise.mp3');
audio.play();
clearInterval(checkExist);
} else {
console.log('Waiting for 5 seconds...');
}
}, 5000); // check every 100ms
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment