Coder Social home page Coder Social logo

apsun / sc-repost-blocker Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 16 KB

A browser extension to remove reposts from your SoundCloud stream.

Home Page: https://addons.mozilla.org/en-US/firefox/addon/soundcloud-repost-blocker/

License: MIT License

JavaScript 100.00%

sc-repost-blocker's Introduction

SoundCloud repost blocker

Removes reposts from your SoundCloud stream. I follow artists because I enjoy their music, not their taste in music.

Note that reposts on artist pages are not removed, since SoundCloud has that functionality built in. Only reposts on the homepage stream will be filtered.

Notes

As of version 2.0, you may still see reposts if you are following the artist who originally posted the track. This addresses the following scenario: you follow both A and B; A posts a track; B reposts it.

As of version 2.1, you may still see reposts if the name of the user reposting the track appears in the track title. This addresses the following scenario: you follow A; B posts a track which A contributed to; A reposts it (this is a common pattern for labels and collabs).

sc-repost-blocker's People

Contributors

apsun avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

squadella

sc-repost-blocker's Issues

Rewrite reposts with original upload time

Common complaint is that after we started whitelisting reposts that were originally posted by someone that the user follows, tracks are out of order and reposting a track will "bump" it to the top of the user's stream.

To avoid this, we can maintain an internal priority queue of tracks sorted by original upload time, and only return them to the client once either queue[pagination_size..end] contains a non-repost (guaranteeing that anything in queue[0..pagination_size] is in-order), or there are no more tracks from the upstream data source.

Allow reposts from following list

I never realized this, but it's kind of obvious in hindsight. Say I follow users A and B. A posts a track, and then B reposts it. When I load my stream, I will get only the reposted version from B, because it's newer. This then gets filtered out, meaning I never see the track even though I would have if B never reposted it.

Experimental support for this can be found in the experimental branch (https://github.com/apsun/sc-repost-blocker/tree/experimental), although it seems a bit racy on page load.

Allow reposts that contain the reposter's name

There's a pretty common pattern of: post track on someone else's channel, then repost that track onto your own. If we blanket ban all reposts, we also block these which is undesirable.

Unfortunately, people tend to use variations/stylizations of their name in their profile, so a simple string match will probably not catch many of these cases. I don't know if there's a good solution for this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.