Not logged in. · Lost password · Register

pr0wl
Jonas
Avatar
Member since Oct 2009
323 posts
Subject: Script to visually highlight if deployment worked (or not)
function isInPage(text) { return document.documentElement.innerHTML.indexOf(text) != -1; }

var isDeployedSuccessfully = isInPage('OK - Deployed');
var isDeployedWithFailure = isInPage('FAIL - Deployed');

if(isDeployedSuccessfully) { document.body.style.background = '#167F1F'; }
if(isDeployedWithFailure)  { document.body.style.background = '#BF3E2F'; }

Kann man z.B. in Chromium mit https://chrome.google.com/webstore/detail/custom-javascrip… einbauen.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Datenschutz | Kontakt
Powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2011 by Yves Goergen