xiaoxiaoflood / firefox-scripts

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

[Solved] Need help loading userChromeJS #56

Closed LittleBenjiBoy closed 3 years ago

LittleBenjiBoy commented 3 years ago

I tried following the instructions on Github, but it didn't work for me. Can someone please make a video getting this to work?

Here is a video of what I did: https://streamable.com/phceok

AlexVallat commented 3 years ago

Can't do a video right now, but your first step is wrong. The instructions say to download this zip file and extract into Firefox folder. You downloaded the whole repo (probably from the Code button, Download Zip).

old-izayoi commented 3 years ago

@B3nji957 having the same issue, followed the instructions, but nothing :c

LittleBenjiBoy commented 3 years ago

Can't do a video right now, but your first step is wrong. The instructions say to download this zip file and extract into Firefox folder. You downloaded the whole repo (probably from the Code button, Download Zip).

@AlexVallat Thank you so much! I got it to work now.

old-izayoi commented 3 years ago

@AlexVallat i do everything right, but it doesn't work. the fx-zip files to the firefox folder and scripts in chrome (profile folder), also tried removing the css files for the theme, but it didn't work at all, using latest dev on w10 image image

LittleBenjiBoy commented 3 years ago

@B3nji957 having the same issue, followed the instructions, but nothing :c

@old-izayoi here is a video of how I got it to work: https://streamable.com/s252bi

This is how I got a script to work on Firefox. You don't need developer version.

Edit: When I put all of the scripts provided in chrome folder, rebuild_userChrome and extensionOptionsMenu wouldn't open when I clicked on them. I think that there are some scripts not compatible with each other causing them not to work.

LittleBenjiBoy commented 3 years ago

@old-izayoi can you show what's inside your defaults\pref folder as well as your utils folder?

AlexVallat commented 3 years ago

Looking at your screenshots, I think the deprecated folder shouldn't be there, those are scripts that are no longer in use. In general the idea is to pick the scripts you actually want to use rather than just dump everything in there! Also, styloaix.zip doesn't belong there; if you want to use styloaix you need to unzip the contents into the folder.

I would suggest clearing out the chrome folder and just putting rebuild_userChrome.uc.js (if you want to use scripts) and extensionOptionsMenu.uc.js (if you want to use extensions) and see if it works with those. If it still doesn't work, your best bet is to open the browser toolbox and scroll back up through the log and see if anything seems relevant.

old-izayoi commented 3 years ago

@old-izayoi can you show what's inside your defaults\pref folder as well as your utils folder? 1 pic - chrome folder, did everything like you in the video 2 pic - def only has "pref" folder in it still dont see anything appearing in my adressbar image image

peterwx commented 3 years ago

@old-izayoi maybe it is the wrong profile (if you have >1 profile) that you are making changes to and then running another one?.

old-izayoi commented 3 years ago

@peterwx using only the dev version, the other profile is old and from the default mozilla, it alsos shows me the right profile when i click on the "profile folder" button, i thought that the .css files could cause the problem, but removing them didnt help at all

LittleBenjiBoy commented 3 years ago

@old-izayoi try removing the img folder in chrome? If even then that doesn't work, I don't know why.

peterwx commented 3 years ago

@old-izayoi another suggestion: try clearing the script cache manually w/ browser closed then start Firefox. To do this go to <profile-name> folder inside mozilla folder on appdata->local (not the roaming folder where your profile is) then delete startupCache folder. After this start FF. Are scripts even showing in Browsers Toolbox or the like under sources separator?

old-izayoi commented 3 years ago

@B3nji957 it's for css theme, couldn't be the problem issue. @peterwx i deleted the folder from "local" and restarted the ff manually. nah, they arent showing up anywhere, neither the shape that controls the scripts does. i have 5 extensions pinned there, but idk if could be the problem, i still can place like 4-6 more there

LittleBenjiBoy commented 3 years ago

@old-izayoi does your chrome\utils folder inside your profile have these files?

Also, try going to your profile folder in about:support and delete the storage folder. Start Firefox and tell me how it goes.

2020-10-17 11_52_02-utils

AlexVallat commented 3 years ago

Another thing that randomly helps is deleting the chrome_debugger_profile folder in the profile. This resets the browser toolbox devtools window. No idea why that would help, or if it only helps when you've been using the toolbox for debugging, but it's worth a go.

peterwx commented 3 years ago

Or it could be the files (config.js, etc.) are placed in FF installation folder instead of in the Dev FF installation folder, which is the one used. Maybe you could try redoing the process of placing the files in a new profile and see if that works.

old-izayoi commented 3 years ago

Thanks to everyone, I forgot that dev version has its own folder, thought Mozilla one is for every version