Hello,
The following code (in a Firefox extension) toggles the value of the "FontSmoothing" Registry-Key.
How do I apply the changes immediately (without a reboot or restarting Windows Explorer?
Thank you.
The following code (in a Firefox extension) toggles the value of the "FontSmoothing" Registry-Key.
Code: (javascript)
let regFontSmooth = Components.classes["@mozilla.org/windows-registry-key;1"].createInstance(Components.interfaces.nsIWindowsRegKey);
regFontSmooth.open(regFontSmooth.ROOT_KEY_CURRENT_USER, "Control Panel\\Desktop", regFontSmooth.ACCESS_ALL);
regFontSmooth.writeStringValue("FontSmoothing", regFontSmooth.readStringValue("FontSmoothing") == 0 ? 2 : 0);
regFontSmooth.close();How do I apply the changes immediately (without a reboot or restarting Windows Explorer?
Thank you.










