tom-james-watson / old-reddit-redirect

Ensure Reddit always loads the old design
409 stars 73 forks source link

feat: make it easier to develop and add contributing docs #94

Closed francium closed 1 year ago

francium commented 1 year ago

I wanted to contribute but couldn't find easy steps. I remembered https://www.npmjs.com/package/web-ext and managed to get it working for the purposes of contributing a fix.

I've created this PR to document contributing steps for others and add web-ext as a dev dependency.

francium commented 1 year ago

I've simplified everything now as per the suggestions.

francium commented 1 year ago

By the way, how were you testing this without web-ext? Just curious, I don't do much browser extension development. I tried uploading the zip, but the browser didn't accept it as a valid extension

tom-james-watson commented 1 year ago

In firefox "Manage extensions" -> Cog icon -> "Debug Add-ons" -> "Load Temporary Add-on" and select the manifest.json. It live reloads etc.

tom-james-watson commented 1 year ago

I think in Chrome it works similarly but you need to select the manifest.json's directory.