Created
October 31, 2022 15:00
-
-
Save gregilo/1fcb14060fa81e65b5885d83362a671d to your computer and use it in GitHub Desktop.
Bandcamp Silent Lurk
This file contains hidden or 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 Bandcamp Silent Lurk | |
| // @namespace http://*.bandcamp.com/* | |
| // @version 0.1 | |
| // @description I felt weird that Bandcamp notifies people when I buy stuff from the feed, so I think this disables that | |
| // @author https://github.com/gregilo | |
| // @match https://*.bandcamp.com/* | |
| // @exclude https://bandcamp.com/download* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=bandcamp.com | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const params = new Proxy(new URLSearchParams(window.location.search), { | |
| get: (searchParams, prop) => searchParams.get(prop), | |
| }); | |
| //if (window.location.pathname.indexOf('/download') < 0 && params.from) { | |
| if (params.from) { | |
| const location = window.location.toString(); | |
| window.location.href = location.substring(0, location.indexOf('?')); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment