Skip to content

Commit

Permalink
FKAMP-5 Split on the fragment rather than the start of the query string
Browse files Browse the repository at this point in the history
  • Loading branch information
bentasker committed Jun 11, 2019
1 parent 791707a commit 14f9a8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion greasemonkey_hook_googlesearch.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ var AMPCheck = debounce(function() {
if (s && s.includes('.cdn.ampproject.org/')){

// Extract the source domain name and path from the amp cdn url
s=s.split("?")[0];
s=s.split("#")[0];
e=s.split("/");

// Start building a new URL
Expand Down

0 comments on commit 14f9a8e

Please sign in to comment.