Automatically sorting Discogs master release pages by country:
- First download and install Tampermonkey from https://tampermonkey.net/
- Once it’s installed, open the extension menu and click “Create new script”
- Paste the Javascript code below into the editor and click File > Save
(replace everything that’s there with this code)
// ==UserScript== // @name Discogs Master Release Default Sort By Country // @namespace https://www.discogs-enhancer.com // @version 0.1 // @description Set MR release link to include custom filters by default // @author Matthew Salcido (discogs.enhancer@gmail.com) // @match https://www.discogs.com/* // @grant none // ==/UserScript== (function() { 'use strict'; const links = [...document.querySelectorAll('a')]; links.forEach(link => { if (link.href.includes('/master/')) { link.href += '?sort=country&sort_order='; } }); })();