Native Chrome Support (Will Not Happen And Why)
![]() ![]() |
This script will not have native Chrome support due to security restrictions of HTML5 local storage. HTML5 storage is on a per-site basis, this in mind the user would have to re-customize the bar for each google site they use (Eek)! If anyone is interested here is some code I threw together to emulate Greasemonkey values in HTML5.
// Let's setup some html5 storage hooks incase greasemonkey is not available
if (typeof(GM_getValue) != "function" && !localStorage)
{
window.alert("\
Your browser does not support localstorage nor does it support greasemonkey commands!\n\
\n\
If you are running Firefox please upgrade to a newer version or install Greasemonkey.\n\
If you are running Chrome please upgrade to a newer version or install Tampermonkey.\
");
avtng.status.browserErr = 101;
}
else if(typeof(GM_getValue) != "function")
{
var GM_getValue = function (key, def) {return (localStorage.getItem(key) != "undefined")? localStorage.getItem(key) : def;};
var GM_setValue = function (key, val) {localStorage.setItem(key, val);};
var GM_deleteValue = function (key) {localStorage.removeItem(key);};
}
|
![]() ![]() |
I noticed that you spelled Tampermonkey wrong in the code. |
![]() ![]() |
thanks and much love! |


