Skip to content

Instantly share code, notes, and snippets.

@jeregrine

jeregrine/fakespot.js

Last active Nov 17, 2020
Embed
What would you like to do?
Fakespot Amazon Grease Monkey
// ==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);
@jeregrine

This comment has been minimized.

Copy link
Owner Author

@jeregrine jeregrine commented Nov 17, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.