Skip to content

Commit 86dea30

Browse files
committed
🎉 This release is now having every feature envisioned when starting this little script, with more added along the way ! 🎉 All platforms: * Userscript (meta): Added some @grant directives like GM_setValue and GM_getValue in order to save user preferences & script settings regardless of localStorage limitations. This will likely require an agreement click from the user when tampermonkey updates the script to this version. * Userscript (UI): Added a new custom UI screen to manage script settings and feature oup-out. Accessible via the "DIUserscript" menu entry for each site. (issue #15) * Userscript (initialization): Fixed a case where the script would not load properly into the page when the DOM was already loaded. * Player (browser global media controls): Added support for navigator.mediaSession, making Global Media Controls available with skip and previous track buttons. (issue * Player (play previous track button): Fixed a bug where the button would not show up or work as intended while listening to 'Playlists' episodes. * Player (play previous track button): Converted to VueJS component. * Player (volume input control): Converted to VueJS component. * Player (track download button): Adjusted CSS * Player (track download button): reverted to old track download method when NOT using Tampermonkey. It means those users will not be able to have an automatic normalized file name for the time being, but can still manually download. (issue #36) * Documentation: Updated README, Troubleshooting and Disclaimer/FAQ pages di-only: * Navigation (UI): Added the "DIUserscript" menu entry for responsive mobile version and small displays. Non-DI platforms: * Premium Channels: This new feature will try to unlock otherwise paywalled channels by fooling the client's audio player into thinking you are entilted. * Visual ads: Removed new "premium" & "trial" slideshow carousel * Player (play previous track button): Fixed disappearance (issue #42) * Player (volume input control): Fixed bad CSS alignment (issue #43) * Navigation (UI): Fixed the "DIUserscript" menu entry not appearing properly.
1 parent e616ef6 commit 86dea30

5 files changed

Lines changed: 63 additions & 17 deletions

File tree

DIUserscript.meta.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,31 @@
55
// @license WTFPL
66
// @description Fanmade script, Removing audio & visual Ads, allowing ad-blockers, allowing to be away from keyboard (AFK) without audio interruption on websites & webradios using the platform from AudioAddict.com
77
// @include https://*.di.fm*
8+
// @include https://di.fm
89
// @include https://*.classicalradio.com*
10+
// @include https://classicalradio.com
911
// @include https://*.radiotunes.com*
12+
// @include https://radiotunes.com
1013
// @include https://*.jazzradio.com*
14+
// @include https://jazzradio.com
1115
// @include https://*.rockradio.com*
16+
// @include https://rockradio.com
1217
// @include https://*.zenradio.com*
18+
// @include https://zenradio.com
1319
// @homepage https://github.com/lethak/LTKDIFMU-userscript
1420
// @downloadURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.user.js
1521
// @updateURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.meta.js
1622
// @icon https://i.imgur.com/vhn9FD6.png
1723
// @noframes
18-
// @inject-into page
24+
// @grant GM_info
25+
// @grant GM_listValues
26+
// @grant GM_deleteValue
27+
// @grant GM_getValue
28+
// @grant GM_setValue
29+
// @grant GM_addValueChangeListener
30+
// @grant GM_removeValueChangeListener
1931
// @grant GM_download
32+
// @inject-into page
2033
// @run-at document-start
21-
// @version 2020.6.14
34+
// @version 2020.10.642
2235
// ==/UserScript==

DIUserscript.user.js

Lines changed: 16 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ while improving user experience and comfort of use of many features.
55

66
## Features
77

8+
* Toggleable features (ON / OFF).
9+
810
### Ads:
911
* Prevents **all** automated ads to play, bypassing them completely.
1012
* Auto mute whenever an ad is playing, auto unmute when finished (just in case !).
@@ -39,6 +41,10 @@ while improving user experience and comfort of use of many features.
3941

4042
![likes ui](https://i.imgur.com/3zfCaqM.png "Likes UI")
4143

44+
* Support for browser's Global Media Controls.
45+
46+
![likes ui](https://i.imgur.com/SG3lYkP.png "Support for browser's Global Media Controls")
47+
4248
## Compatible webradios
4349

4450
DIUserscript is totally or partially functional on 5 known websites so far, consult the [official list here](https://www.audioaddict.com).

doc/disclaimer.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,18 @@ The code also uses the platform's plublic Event API to hook into the system to b
2020

2121
### The use of this Userscript created some errors, what can I do ?
2222

23-
First, by using this userscript (or close enough forks) you agree this is a free experiment, and not a commercial service provided to you.
23+
First, by using this userscript (or close enough forks) you agree than this is experimental, and not a commercial service provided to you.
2424

25-
But still, volunteers can look into issues and try to help ! You always can open a new GitHib Issue on this repository to kindly ask for help.
25+
But still, volunteers can look into it and try to help ! You always can open a new GitHib Issue on this repository to kindly ask for help.
2626

2727
### What is the intended audience of this Userscript ?
2828

29-
It was made mostly for friends and family.
30-
While it is provided only for private and personal use, technically, nothing is preventing any willing visitor to use it.
29+
Mostly some friends and family, and sometimes myself.
30+
While it is provided only for private and personal use, technically, this is not preventing any willing visitor to use it though.
3131
Free Listeners or Premium, the features are provided to enhance user experience with the audio service.
3232

33-
- - -
33+
### Is there any interest for using the userscript when already paying for Premium service ?
34+
35+
I'd think so. Most of the script features are not even provided natively for premium users.
36+
3437
* Back to [index](../README.md)

doc/troubleshooting.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
# Troubleshooting
22

3-
* Sometimes, chrome and firefox will disable tampermonkey or greasemonkey for some reasons.
3+
* Sometimes, chrome and firefox will disable tampermonkey or my userscript manager for some reasons.
44
* Please make sure they are installed and enabled before opening any issue here.
55

6+
## Mobile/Tablet
7+
* I have not managed to make the script work on mobile or tablet. If you have any clue on how to do it, please create a new issue detailing a solution or giving ideas.
8+
* An issue #44 exists to follow the current state of this topic.
9+
10+
611
## The script is active but some features are not working
712
* Some features are only working with an account. This script must run with an account for all features to work best.
813
* This script is not intended to remove the need to register for a free/premium account.
@@ -18,12 +23,21 @@ a reload might be necessary for things to run smoothly without any bad side effe
1823
* It is not possible to make it work this way without a proper, legitimate premium account. (or if it is, I won't bother dealing with this)
1924
* From issue #22
2025

26+
## Troubles using exotic browsers and script manager
27+
* Other browsers such as Vivaldi (#34) and script manager such as ViolentMonkey (#36) might have issues but might also work in some capacity.
28+
* Even if thoughts are put into making it widely generic and cross platform, this script is intended to work and be tested with Tampermonkey for Chrome or Firefox.
29+
30+
## I cannot click on the Seek Bar to play the track at a different position
31+
* This is not always the case and may appear to work at random. Workaround exists by dragging the cursor instead of clicking the position, or to click play/pause multiple times before clicking the position again.
32+
* From issue #41
33+
2134
## The use of this Userscript created some errors, what can I do ?
2235

2336
* Read our [Disclaimer page](./disclaimer.md).
2437
* Check this current page for informations already existing regarding your issue.
2538
* Browse the Issue section of the repository to look for some issues already related to your problem.
26-
* You always can open a new GitHib Issue on this repository to kindly ask for help.
39+
* You always can open a new GitHib Issue on this repository to kindly ask for help.
40+
* Not every error is actually impacting the features. (issue #23)
2741

2842
## (old) A warning message keeps telling me to update the script
2943

@@ -36,7 +50,7 @@ a reload might be necessary for things to run smoothly without any bad side effe
3650

3751
- - -
3852

39-
## Weird behavior and doublons
53+
## (old) Weird behavior and doublons
4054

4155
- - -
4256

@@ -47,10 +61,7 @@ a reload might be necessary for things to run smoothly without any bad side effe
4761

4862
- - -
4963

50-
## Mobile/Tablet
51-
I have not managed to make the script work on mobile or tablet. If you have any clue on how to do it, please create a new issue detailing a solution.
52-
53-
## Greasemonkey and Firefox Quantum
64+
## (old) Greasemonkey and Firefox Quantum
5465
For [greasemonkey](https://addons.mozilla.org/en-gb/firefox/addon/greasemonkey/) users, the script is having troubles with Firefox since the "Quantum" update (version >= 57), this is why the latest version of [tampermonkey](https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo) is now recommended for all browsers.
5566

5667
Compatibility:

0 commit comments

Comments
 (0)