MozillaZine

[Ext] userChromeJS 2.0 [2015-08-02]

Announce and Discuss the Latest Theme and Extension Releases.
Endor

User avatar
 
Posts: 137
Joined: January 17th, 2008, 8:03 am
Location: Somewhere in Space

Post Posted May 13th, 2017, 2:00 am

Hi alta88.
Will the userchromejs.2.0.xpi add-on survive the transition to webextension
or is it destined to die? Are there any news about this?
Cheers
Endor
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Firefox/52.0
OS: Windows 7 Home Premium - My Versions Info

alta88
 
Posts: 980
Joined: January 28th, 2006, 3:08 pm

Post Posted May 14th, 2017, 12:06 pm

I haven't looked into it, but from what I understand it won't/can't be as privileged as it is currently. It can likely be made to execute snippets of code but not on chrome or using xpcom apis, ie I doubt it can add an xul statusbar to the dom, etc. so won't be hugely useful. And the xul overlay part is surely dead. For web page manipulation, whatever GreaseMonkey can do is an alternative. I'm also unlikely to take the time to figure it out/convert it, sorry.

The current state of thinking is well described by the door slam on the old bug to implement natively a userChrome.js type file:
https://bugzilla.mozilla.org/show_bug.cgi?id=332529

morat
 
Posts: 2235
Joined: February 3rd, 2009, 6:29 pm

Post Posted May 14th, 2017, 5:44 pm

The config file may still work in Firefox 57. You can use the mozilla.cfg file as an alternative to the userChrome.js file.

Customizing Firefox – Advanced Autoconfig Files
http://mike.kaply.com/2012/03/22/custom ... fig-files/

Demo mozilla.cfg file
http://mike.kaply.com/wp-content/blogs. ... 2/demo.cfg

Observer Notifications
http://developer.mozilla.org/en-US/docs ... ifications

Deploying Firefox in an enterprise environment
http://developer.mozilla.org/en-US/Fire ... deployment

alta88
 
Posts: 980
Joined: January 28th, 2006, 3:08 pm

Post Posted May 15th, 2017, 7:15 am

Thanks morat, .cfg is indeed a way to bypass being an xul overlay. However,
1) a web extension would need to write to this file, this ability could be removed in the future.
2) the code executed in .cfg could be limited to just the pref setting/locking for which the file was originally intended.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: No registered users and 2 guests