mirror of
https://github.com/iamadamdev/bypass-paywalls-chrome
synced 2025-05-12 01:24:26 +02:00

- 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)
4 lines
166 B
JavaScript
4 lines
166 B
JavaScript
var manifestData = extension_api.runtime.getManifest();
|
|
var versionString = 'v' + manifestData.version;
|
|
document.getElementById('version').innerText = versionString;
|