Last active
September 21, 2024 15:28
-
-
Save jeregrine/18865dd9a50cd2b864a5ae2d7d38f1d1 to your computer and use it in GitHub Desktop.
Fakespot Amazon Grease Monkey
This file contains 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 characters
// ==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"); | |
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); |
Author
jeregrine
commented
Nov 17, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment