Avatar for Username

ძიება მხარდაჭერაში

ნუ გაებმებით თაღლითების მახეში. აქ არავინ უნდა მოგთხოვოთ ტელეფონზე დარეკვა, შეტყობინების გაგზავნა ან პირადი მონაცემების გაზიარება. რამე საეჭვოს შემჩნევისას გთხოვთ გვაცნობოთ „დარღვევის მოხსენებით“.

ვრცლად

Run custom .js file from defaults\pref

  • 3 პასუხი
  • 1 მომხმარებელი წააწყდა მსგავს სიძნელეს
  • 92 ნახვა
  • ბოლოს გამოეხმაურა eddythorn

Is it possible to either A) Have FF run a simple custom .js file that I've created that's located in the defaults\pref directory (each time FF is run), or B) Add a couple of lines of javascript to the local-settings.js file? I've tried but it hasn't worked, so I don't know if it's even possible.

Thanks.

Is it possible to either A) Have FF run a simple custom .js file that I've created that's located in the defaults\pref directory (each time FF is run), or B) Add a couple of lines of javascript to the local-settings.js file? I've tried but it hasn't worked, so I don't know if it's even possible. Thanks.

გადაწყვეტა შერჩეულია

To run JavaScript with chrome permissions you would have to add this code to the mozilla.cfg file that you specify to use via the local-settings.js file.

პასუხის ნახვა სრულად 👍 0

ყველა პასუხი (3)

შერჩეული გადაწყვეტა

To run JavaScript with chrome permissions you would have to add this code to the mozilla.cfg file that you specify to use via the local-settings.js file.

Thanks Mike! I had already bookmarked your site, but didn't run across those posts. This is exactly what I need.

Mike, I'm running into a problem. I am adding a bookmark folder and a few bookmarks (placed this code into a firefox.cfg file). Now every time I launch FF, a new copy of the bookmark folder is being created. My thought was to check if the folder exists - if it does, don't add the folder. To do this, I need to know the Id of the item I'm removing. However, I can't seem to determine how to get this info without digging into the places.sqlite file. Suggestions?