13 months agoAdjust README master
B Tasker []
Adjust README

13 months agoAdjust script to only run once per page-load v1.3
B Tasker []
Adjust script to only run once per page-load

Without this change, every time there's an AJAX request the script will re-run, which is a tad battery hungry on mobile.

Have also adjusted the payload script to make sure we're only running the check once, as an old call was left in

13 months agoProvide link to test page
B Tasker []
Provide link to test page

13 months agoUpdate README to reflect latest changes. Consider this V1.2 v1.2
B Tasker []
Update README to reflect latest changes. Consider this V1.2

13 months agoMISC-25 Switch to using TM/GM's require directive
B Tasker []
MISC-25 Switch to using TM/GM's require directive

This allows TamperMonkey to run the script even on pages with a strict Content-Security-Policy (as TM supports adding itself into any CSP headers which are present).

It also results in faster trigger times, and means my CDN's logs now won't contain referrer strings showing peoples browsing history (which is a win for both them and me)

13 months agoCreate README v1.1
B Tasker []
Create README

13 months agoEnsure function returns after pushing redirect (MISC-25)
B Tasker []
Ensure function returns after pushing redirect (MISC-25)

Otherwise, if the browser is slow to follow the redirect we'll still write subsequent console.log calls to console. Might make troubleshooting tricky at some point in the future.

13 months agoAdd version information and download URL in
B Tasker []
Add version information and download URL in

13 months agoCreates greasemonkey script for STGNG-7
Ben Tasker []
Creates greasemonkey script for STGNG-7

I had originally planned to load the anti-amp Javascript direct from Github (using raw.) but unfortunately the browser refuses to run it because the content-type is returned as text/plain rather than application/javascript

Instead, we serve it via my CDN.

When adding the script anchor, we include a SubResourceIntegrity (SRI) hash to minimise the chances of a MITM (or compromise of my system) buggering anyone.

13 months agoSee STGNG-7
Ben Tasker []
See STGNG-7

Adjusts the anti-AMP script to write more to console so that we can track whether it's firing.

Also deals with the fact that Google decided rather than just using ASCII attributes, you can also use ⚡ to denotate that something is in AMP format.

Automatic redirect has been re-enabled now that the fallback functionality has been tested

13 months agoDelay triggering of the checks
Ben Tasker []
Delay triggering of the checks

13 months agoImplement initial version of AMP bypasser. See STGNG-7
Ben Tasker []
Implement initial version of AMP bypasser. See STGNG-7

13 months agoInitial commit
Ben Tasker []
Initial commit