Last active
September 21, 2024 15:28
-
-
Save jeregrine/18865dd9a50cd2b864a5ae2d7d38f1d1 to your computer and use it in GitHub Desktop.
Revisions
-
Jason S revised this gist
Nov 17, 2020 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,12 +1,10 @@ // ==UserScript== // @name FakeSpot Amazon // @version 1 // @match https://*.amazon.com/gp/product/* // ==/UserScript== const url = "https://www.fakespot.com/analyze?url="+ encodeURIComponent(window.location) window.addEventListener('load', () => { let ratings = document.getElementById("averageCustomerReviews_feature_div"); -
Jason S created this gist
Nov 17, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,25 @@ // ==UserScript== // @name FakeSpot Amazon // @version 1 // @grant https://www.amazon.com/gp/product/* // ==/UserScript== const url = "https://www.fakespot.com/analyze?url="+ encodeURIComponent(window.location) window.addEventListener('load', () => { let ratings = document.getElementById("averageCustomerReviews_feature_div"); let a = document.createElement('a') a.href = url a.innerText = "Fake Spot" a.target="_blank" let askPipe = document.createElement('span') askPipe.className = "askPipe" askPipe.innerText = "|" ratings.append(askPipe) ratings.append(a) }, false);