1

I thought it would be cool to use Mozilla's Prism to create a webapp for min.us, but drag and drop is disallowed because the site doesn't see the program as Firefox, Chrome or Safari, those of which are apparently the only browsers allowed to do drag and drop for fear that something will be horribly broken.

I'm pretty sure Prism runs on the same engine as Firefox, yet I wouldn't doubt it if Prism is running on an older version since it's kind of a forgotten beta.

Anyways, like the title says, I want to be able to make Prism webapps appear as Firefox to websites, so awesome features can be unlocked.

Also, if it can only be done with Fluid, then I answers regarding that will be fine. I'm not sure what engine it's running though.

1 Answers1

2

Prism runs on the Gecko rendering engine, just like Firefox.

You can change the user agent Prism sends by modifying prefs.js directly. First, find your prefs.js (the internal Prism settings file). If you're running Windows, this should be in AppData in your user folder (something like C:\Users\<yourname>\AppData\Roaming\<nameofPrismapp>\Profiles\prefs.js), on OS X it should be in Application Support (something like /Home/<yourname>/Library/Application Support/<nameofPrismapp>/Profiles/prefs.js).

Now, in that file, check for a line that looks like this:

user_pref("general.useragent.override", "");

If there isn't one there, add it, and set to the user agent that you want Prism to send. Try something like this:

user_pref("general.useragent.override", "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-GB; rv:1.9.2.9) Gecko/20100824 Firefox/3.6.9 ( .NET CLR 3.5.30729; .NET CLR 4.0.20506)");

Now you seem to be running Firefox 3.6 on Windows Vista.

jcrawfordor
  • 16,219
  • 5
  • 39
  • 51