/nyt-cooking

firefox extention

Primary LanguageJavaScript

🚨 This project is essentially depricated 🚨

Please use the nyt-paywall project instead

nyt-cooking

Hacky paywall avoidance extension for NYT cooking

Installation

$ yarn
$ yarn build

Then follow instructions for individual browsers...

Firefox

There's a couple options for developing in FF. In either option, you must first downgrade the manifest_version to 2 in manifest.json.

Temporary installation

Follow these instructions

Self-distributed

  • Create a Mozilla profile/add-on key
  • Create an .env file
  • Populate AMO_JWT_ISSUER and AMO_JWT_SECRET values from key generated above
  • Run the sign and build commands:
$ yarn sign:android && yarn build:android

Chrome

  • Visit extensions settings
  • Toggle on Developer mode
  • Click Load unpacked and select root directory

Alternatively, follow these instructions

Safari

You can use a safari-web-extension-converter to build the extension.

I would recommend moving this into a sibling directory and updating the bundle identifier to something of your fancy.

$ mkdir ../nyt-cooking-safari
$ cd nyt-cooking-safari
$ xcrun safari-web-extension-converter ../nyt-cooking --bundle-identifier com.[YOUR NAME HERE].nytCookingPaywallSmasher
  • Open Xcode (if it didn't automatically open)

  • Select macOS scheme (Product > Scheme > nytCookingPaywallBreaker (macOS))

  • Run build (Product > Build)

  • Open Safari

  • Toggle on Allow Unsigned Extensions in Develop menu

  • Toggle on NYT Cooking Paywall Smasher in Preferences > Extensions