5 Commits

Author SHA1 Message Date
Adam
43bd4642a1 Remove indiatimes.com 2020-03-29 15:04:46 -07:00
Adam
ef4d05461a Prepare for v1.7.0 release 2020-03-29 13:40:48 -07:00
Bela Lubkin
7ad22b5996 Make Google Analytics code optional; on in Chrome / off in Firefox
- common.js: add 'allowDAU' option to control Google Analytics
- background.js: remove 'allowDAU' option during init, on Firefox
- background.js: only init Google Analytics if 'allowDAU'
- build.sh: don't do horrible things with background.js
2020-03-29 01:27:44 -07:00
Bela Lubkin
7f021f0fbe Merge upstream:
> commit 9fb898159caa46a9c33ff7ecf7316611a407df89
> Author: Ben Reaves <rbreaves@gmail.com>
> Date:   Sat Mar 21 17:40:33 2020 -0500
>
>     Add fortune.com
2020-03-23 03:28:00 -07:00
Bela Lubkin
1c3d8d622c Merge 'bypass-paywalls-firefox' extension into 'bypass-paywalls-chrome'
- include the best versions of everything (to the best of my ability...)
- include all supported sites
- update docs to always point to 'bypass-paywalls-chrome' repository
- update docs to be -- not browser-agnostic, but poly-browser
- (tested the 1st 11 sites in alphabetical order, plus WSJ -- using Opera)
- cen.acs.org: retain localstorage ('cookie warning' accepted)
- cen.acs.org: remove .meteredBar '2/3 articles remaining' bar
- XXX centralwesterndaily.com.au: not working (article window-shaded)
- all others tested seem fine (intentionally provoked failures w/ bypass
  disabled, demonstrated success when enabled)
- (end of alphabetical testing)
- move defaultSites{} from background.js & options.js to common.js
- uncertain whether FF contentScript.js code for businessinsider.com,
  haaretz.co.il, wsj.com was helpful, I left them commented out
- use browser-agnostic 'extension_api.*' in place of browser.*, chrome.*
- use 'comma-on-last-item' syntax to allow insertion & sorting without
  breaking structures, minimize commit footprints
- replace 'location.whatever' refs with consistent 'window.location.whatever'
- break structure inits into multi-line format where appropriate
- convert TABs to spaces (background.js had 2-space tabs, manifest.json 4!)
- remove trailing spaces
- sort tables which ought to be sorted, consistently using Linux `LANG=C sort`
  (strict ASCII ordering)
- XXX use of window.location.href.indexOf() considered harmful: for instance,
  'ft.com' will match 'loft.com', or 'ibm.co' (Columbia) matches 'ibm.com';
  intend to replace with something like hostDomainIs('ft.com') -- not now
- XXX Firefox completely untested; I believe a *.xpi with manifest-ff.json
  in place of manifest.json will work, but have not tried
- XXX did not attempt to update updates.json (FF), updates.xml (Chrome)
- XXX why do bypass.svg, *_screenshot.png exist?  At least should not be
  included in *.crx, *.xpi
- XXX same Google Analytics code now in FF build, not sure if this is OK
- version arbitrarily slammed to '1.7.0' (could be '2.0.0')
- code delta -283 lines (mainly defaultSites{}); or -1585 + 3 binaries,
  counting prospective retirement of 'bypass-paywalls-firefox'
- should have been something like 20 separate commits, but got out of hand...

(note 'XXX' problem areas)
2020-03-19 11:04:17 -07:00