NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript==
// @name PSKO
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Alex G
// @license MIT
// @match https://*.rosreestr.work/psko/*
// @match https://*.rosreestr.work/pokd/*
// @match http://localhost:*/psko/*
// @match http://localhost:*/pokd/*
// @grant none
// ==/UserScript==
(function() {
function GM_addStyle (cssStr) {
var D = document;
var newNode = D.createElement ('style');
newNode.textContent = cssStr;
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (newNode);
}
function setOpacity(value) {
if (value === 1) {
GM_addStyle ( `
.bp-layout-alert-container .alert {
opacity: 1;
pointer-events: auto;
}`);
} else {
GM_addStyle ( `
.bp-layout-alert-container .alert {
opacity: ${value || 0.6};
pointer-events: none;
}`);
}
}
setOpacity(localStorage.getItem('GM_nOpacity'));
window.GM_nOpacity = function(value) {
localStorage.setItem('GM_nOpacity', value);
setOpacity(value);
};
})();