Skip to content

Instantly share code, notes, and snippets.

@jeregrine
Last active September 21, 2024 15:28
Show Gist options
  • Select an option

  • Save jeregrine/18865dd9a50cd2b864a5ae2d7d38f1d1 to your computer and use it in GitHub Desktop.

Select an option

Save jeregrine/18865dd9a50cd2b864a5ae2d7d38f1d1 to your computer and use it in GitHub Desktop.

Revisions

  1. Jason S revised this gist Nov 17, 2020. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions fakespot.js
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,10 @@
    // ==UserScript==
    // @name FakeSpot Amazon
    // @version 1
    // @grant https://www.amazon.com/gp/product/*
    // @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");
  2. Jason S created this gist Nov 17, 2020.
    25 changes: 25 additions & 0 deletions fakespot.js
    Original 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);