Re-enabled the trim statement for Chrome; for Firefox, eliminated preferences as storage for storage and use simple-storage. Copied over all injected script methods from Chrome to Firefox, so Firefox now behaves exactly as Chrome. In the future it would be great to create a single JS file that's common between the two platforms as this would make maintenance easier; created a run.sh file to reload the extension in development at runtime, which preserves storage, making it easier to develop and test
added temp extension to gitignore