Yes that would work, but don't use the prefs.js file in a different operating system without first v

Yes that would work, but don't use the prefs.js file in a different operating system without first verifying that there aren't any specific "path to" values for any preferences.