JS command(s) to store constant bookmarklet variables in Internet Explorer?
Storing constant bookmarklet variables for IE8/9?
In Firefox you can permanently save (cross-domain) constant variables to the browser to be written/accessed via bookmarklets (i.e. not just cookie/session level) through the following JS:
var prefManager = Components.classes["@mozilla.org/preferences-service;1"].
getService(Components.interfaces.nsIPrefBranch);
prefManager.setCharPref("extensions.ename.var_name", var_value);
In Chrome you can do:
window.localStorage.setItem('var_name', var_value);
Does anyone know what 开发者_如何学Cthe equivalent command is for Internet Explorer please? (To enable a JS bookmarklet to permanently save an approved user request id.)
精彩评论