xiaoxiaoflood / firefox-scripts

userChromeJS / autoconfig.js and extensions
Mozilla Public License 2.0
989 stars 85 forks source link

The UC script sets the directory #67

Closed blackdarks closed 3 years ago

blackdarks commented 3 years ago

Hello! I’d like to ask, using the rebuild_userChrome.uc.js, how do I transfer the scripts from the Chrome folder to another folder under chrome? Because I don’t think it looks good with all the scripts in the Chrome folder, thanks.

xiaoxiaoflood commented 3 years ago

Done. Update your userChrome.jsm and change the line below as you wish https://github.com/xiaoxiaoflood/firefox-scripts/blob/bf49a208e1363d376fef2d2e11f624fb8aaeed47/chrome/utils/userChrome.jsm#L8

For example, if you want to move .uc.js files from chrome to chrome/js: let scriptsDir = 'js';

blackdarks commented 3 years ago

thanks

blackdarks commented 3 years ago

More questions, what if it's adding several side-by-side subdirectories? e.g. Chrome/JS ,Chrome/TAB, Chrome/sub

xiaoxiaoflood commented 3 years ago

See #6.

M7amma commented 2 years ago

@xiaoxiaoflood I wonder why this method is not compatible with userChrome.jsm that's inside utils_scripts_only.zip? I want to use the _utils_scripts_only_ variant and along with that, I also want to change the scrips path but in utils_scripts_only.zip> utils/userChrome.jsm > Line 8 the code : let scriptsDir = ''; doesn't exist! Please check that

xiaoxiaoflood commented 2 years ago

userChromeJS.jsm is the same file packed in utils.zip and in utils_scripts_only.zip.

Everything here is permanently subject to change (updates), so you shouldn't stick to line number. It was line 8 in February.

https://github.com/xiaoxiaoflood/firefox-scripts/blob/b675c520960c44a1bf5697f8a7df5e81502fc712/chrome/utils/userChrome.jsm#L22

M7amma commented 2 years ago

Okay thanks it's done.

Wacky-Wombat commented 1 year ago

userChromeJS.jsm is the same file packed in utils.zip and in utils_scripts_only.zip.

Everything here is permanently subject to change (updates), so you shouldn't stick to line number. It was line 8 in February.

https://github.com/xiaoxiaoflood/firefox-scripts/blob/b675c520960c44a1bf5697f8a7df5e81502fc712/chrome/utils/userChrome.jsm#L22

Is this still supposed to work? Because for me, it doesn't. :(

Teko101 commented 1 year ago

https://github.com/xiaoxiaoflood/firefox-scripts/blob/b675c520960c44a1bf5697f8a7df5e81502fc712/chrome/utils/userChrome.jsm#L22

Is this still supposed to work? Because for me, it doesn't. :(

Works for me. I think you should "Clear startup cache" and restart.

Judefy commented 1 year ago

userChromeJS.jsm is the same file packed in utils.zip and in utils_scripts_only.zip.

Everything here is permanently subject to change (updates), so you shouldn't stick to line number. It was line 8 in February.

https://github.com/xiaoxiaoflood/firefox-scripts/blob/b675c520960c44a1bf5697f8a7df5e81502fc712/chrome/utils/userChrome.jsm#L22

Can I use scriptsDir: 'file///xxx' to put it on another disk?