Google Bar+

By Boondoklife Last update Jan 23, 2012 — Installed 35,317 times.

Native Chrome Support (Will Not Happen And Why)

in
Subscribe to Native Chrome Support (Will Not Happen And Why) 3 posts, 2 voices



Boondoklife Script's Author
ChromeWindows

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);};
}

 
rcmero Scriptwright
FirefoxWindows

I noticed that you spelled Tampermonkey wrong in the code.

 
Boondoklife Script's Author
FirefoxWindows

thanks and much love!