Skip to content

Instantly share code, notes, and snippets.

@gregilo
Created October 31, 2022 15:00
Show Gist options
  • Select an option

  • Save gregilo/1fcb14060fa81e65b5885d83362a671d to your computer and use it in GitHub Desktop.

Select an option

Save gregilo/1fcb14060fa81e65b5885d83362a671d to your computer and use it in GitHub Desktop.
Bandcamp Silent Lurk
// ==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