Since plusActive
is global to the target-page scope (which is not the script scope)...
For Firefox only, this will work:
// ==UserScript==
// @name PLUS
// @namespace http://userstyles.org
// @description PLUS
// @author md
// @homepage http://userstyles.org/styles/43691
// @include http://azet.sk/*
// @include https://azet.sk/*
// @include http://-azet.sk/*
// @include https://-azet.sk/*
// @include http://*.azet.sk/*
// @include https://*.azet.sk/*
// @include http://*-azet.sk/*
// @include https://*-azet.sk/*
// @grant none
// ==/UserScript==
window.plusActive = true;
Where the @grant none
is very important to ensure always expected operation, for this script.
For a cross-browser approach, use script injection:
// ==UserScript==
// @name PLUS
// @namespace http://userstyles.org
// @description PLUS
// @author md
// @homepage http://userstyles.org/styles/43691
// @include http://azet.sk/*
// @include https://azet.sk/*
// @include http://-azet.sk/*
// @include https://-azet.sk/*
// @include http://*.azet.sk/*
// @include https://*.azet.sk/*
// @include http://*-azet.sk/*
// @include https://*-azet.sk/*
// @grant GM_addStyle
// ==/UserScript==
/*- The @grant directive is needed to work around a design change
introduced in GM 1.0. It restores the sandbox.
*/
addJS_Node ('plusActive = true;');
function addJS_Node (text, s_URL, funcToRun, runOnLoad) {
var D = document;
var scriptNode = D.createElement ('script');
if (runOnLoad) {
scriptNode.addEventListener ("load", runOnLoad, false);
}
scriptNode.type = "text/javascript";
if (text) scriptNode.textContent = text;
if (s_URL) scriptNode.src = s_URL;
if (funcToRun) scriptNode.textContent = '(' + funcToRun.toString() + ')()';
var targ = D.getElementsByTagName ('head')[0] || D.body || D.documentElement;
targ.appendChild (scriptNode);
}