Created
July 24, 2022 16:10
-
-
Save jamespsterling/d7f355dfa82b25fd2d0a920bad68721a to your computer and use it in GitHub Desktop.
Auto sorts by review count
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
(function() { | |
'use strict'; | |
const amazonSearchUrls = ['https://www.amazon.com/s', 'https://smile.amazon.com/s'] | |
const sortQsp = '&s=review-count-rank'; | |
if (amazonSearchUrls.some(substr => window.location.href.startsWith(substr)) && !window.location.href.includes(sortQsp)) { | |
console.log(`adding ${sortQsp}`); | |
window.location.replace(`${window.location.href}${sortQsp}`) | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://greasyfork.org/en/scripts/448403-amazon-auto-sort-by-review-count