add header file
This commit is contained in:
parent
d853c738eb
commit
a6109fc541
|
|
@ -0,0 +1,47 @@
|
||||||
|
// ==UserScript==
|
||||||
|
// @name Status.io Selector
|
||||||
|
// @namespace https://status.io
|
||||||
|
// @description Effort to simplify configuration of incidents/maintenance windows
|
||||||
|
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js
|
||||||
|
// @require http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.1/jquery-ui.min.js
|
||||||
|
// @version 0.0.1
|
||||||
|
// @downloadUrl https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
|
||||||
|
// @updateURL https://gitea.frijole.lol/o0beaner/js-statusio-selector/raw/branch/main/statusio-selector.user.js
|
||||||
|
// @include /^https?://app\.status\.io/dashboard/.*/?(maintenance|incident)/create$/
|
||||||
|
// @include /^https?://app\.status\.io/dashboard/.*/?(maintenance|incident)/.*/?edit$/
|
||||||
|
// @grant GM_addStyle
|
||||||
|
// @grant GM_setClipboard
|
||||||
|
// ==/UserScript==
|
||||||
|
|
||||||
|
//--- Style our newly added elements using CSS.
|
||||||
|
GM_addStyle ( multilineStr ( function () {/*!
|
||||||
|
#myContainer {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 150px;
|
||||||
|
right: 0;
|
||||||
|
font-size: 14px;
|
||||||
|
background: orange;
|
||||||
|
border: 3px outset black;
|
||||||
|
margin: 3px;
|
||||||
|
opacity: 0.7;
|
||||||
|
z-index: 222;
|
||||||
|
padding: 5px 5px;
|
||||||
|
}
|
||||||
|
#myButton {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#myContainer p {
|
||||||
|
color: red;
|
||||||
|
background: white;
|
||||||
|
}
|
||||||
|
*/} ) );
|
||||||
|
|
||||||
|
function multilineStr (dummyFunc) {
|
||||||
|
var str = dummyFunc.toString ();
|
||||||
|
str = str.replace (/^[^\/]+\/\*!?/, '') // Strip function () { /*!
|
||||||
|
.replace (/\s*\*\/\s*\}\s*$/, '') // Strip */ }
|
||||||
|
.replace (/\/\/.+$/gm, '') // Double-slash comments wreck CSS. Strip them.
|
||||||
|
;
|
||||||
|
return str;
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue