Skip to content

Commit

Permalink
v2022.2.4
Browse files Browse the repository at this point in the history
All platforms:
* Player (volume ease up): The user can now interrupt the volume from increasing by manually adjusting it at the same time (issue #54)
* Greasy Forks: Added readme.md and updatable script version that redirect users to the readme.

di-only:
* Upvoted tracks playback (Loop button):  Fixed broken CSS on the loop button (issue #55)
  • Loading branch information
lethak committed Feb 9, 2022
1 parent e5f86ba commit 1d33c1b
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DIUserscript.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
// @grant GM_download
// @inject-into page
// @run-at document-start
// @version 2021.4.43
// @version 2022.2.4
// ==/UserScript==
4 changes: 2 additions & 2 deletions DIUserscript.user.js

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions doc/greasyforks/DIUserscript.meta.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// ==UserScript==
// @name (Greasy Forks) DIUserscript for AudioAddict platforms
// @namespace LTKDIFMU
// @author LethaK Maas
// @license WTFPL
// @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
// @include https://*.di.fm*
// @include https://di.fm
// @include https://*.classicalradio.com*
// @include https://classicalradio.com
// @include https://*.radiotunes.com*
// @include https://radiotunes.com
// @include https://*.jazzradio.com*
// @include https://jazzradio.com
// @include https://*.rockradio.com*
// @include https://rockradio.com
// @include https://*.zenradio.com*
// @include https://zenradio.com
// @homepage https://github.com/lethak/LTKDIFMU-userscript
// @downloadURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.user.js
// @updateURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.meta.js
// @icon https://i.imgur.com/vhn9FD6.png
// @noframes
// @grant GM_info
// @grant GM_listValues
// @grant GM_deleteValue
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addValueChangeListener
// @grant GM_removeValueChangeListener
// @grant GM_download
// @inject-into page
// @run-at document-start
// @version 2021.0.0
// ==/UserScript==
43 changes: 43 additions & 0 deletions doc/greasyforks/DIUserscript.user.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// ==UserScript==
// @name (Greasy Forks) DIUserscript for AudioAddict platforms
// @namespace LTKDIFMU
// @author LethaK Maas
// @license WTFPL
// @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
// @include https://*.di.fm*
// @include https://di.fm
// @include https://*.classicalradio.com*
// @include https://classicalradio.com
// @include https://*.radiotunes.com*
// @include https://radiotunes.com
// @include https://*.jazzradio.com*
// @include https://jazzradio.com
// @include https://*.rockradio.com*
// @include https://rockradio.com
// @include https://*.zenradio.com*
// @include https://zenradio.com
// @homepage https://github.com/lethak/LTKDIFMU-userscript
// @downloadURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.user.js
// @updateURL https://raw.githubusercontent.com/lethak/LTKDIFMU-userscript/live/DIUserscript.meta.js
// @icon https://i.imgur.com/vhn9FD6.png
// @noframes
// @grant GM_info
// @grant GM_listValues
// @grant GM_deleteValue
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_addValueChangeListener
// @grant GM_removeValueChangeListener
// @grant GM_download
// @inject-into page
// @run-at document-start
// @version 2021.0.0
// ==/UserScript==
var readmeUrl = 'https://github.com/lethak/LTKDIFMU-userscript/tree/live/doc/greasyforks/README.md';
var gfMessage = '<strong>DIUserscript</strong>: You installed LTKDIFMU-userscript using Greasy Forks which is an old site with limits preventing us to deploy our fully packaged modern script. <strong>Therefore, you need to re-install it from our github to enjoy the features. <a href="'+readmeUrl+'">CLICK HERE</a></strong>';
setInterval( function() {
if (di && di.app && di.app.commands) {
di.app.commands.execute('message:warn:persistent', gfMessage);
}
}, 1000)
console.error(gfMessage, { readmeUrl: readmeUrl });
44 changes: 44 additions & 0 deletions doc/greasyforks/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Greasy Forks

:warning: Read this page if you clicked a red message notification from your webradio. This means your version is now deprecated and cannot be updated unless you follow these instructions

## TLDR; Re-install manually from github


We will not update this script on the Greasy Forks platform anymore.

It is advised to go to your script manager settings/dashboard and remove our Userscript, then head hover ----> [there](https://github.com/lethak/LTKDIFMU-userscript/blob/live/README.md) <---- and follow the instructions to manually install it.
You will only have to do this once as it is setup to auto-update via github urls directly. Something that Greasy Forks was also preventing us to do.

## Long version


[Greasy Forks](https://greasyfork.org/) is an old website acting as a central repository for userscripts.

Publishing and updating [our script on this platform](https://greasyfork.org/en/scripts/397697-diuserscript-for-audioaddict-platforms) proved problematic as its rules prevent us to do so.
* Max character limit reached
* Minified code

You might notice those 2 rules are working against each others, but this site is using this archaic policy because the owners might not be aware of modern frameworks such as reactjs, vuejs, npm... and they think we will include all the dependencies as static "lib" userscript using the @require meta-function.

They think this is acceptable but really this is not when you have the complexity we have.


> The latest working version of LTKDIFMU published on GF was [v2020.6.14](https://github.com/lethak/LTKDIFMU-userscript/tree/v2020.6.14) from 2 Jun 2020, an old and semi broken version by now.
Since our script, packaged, minified and trimmed to the limits of what is technically possible, has reached GF's max character limit, updates are not working anymore.
Furthermore, a moderator over there removed it from public access because it was minified.



|Date|Moderator|Action|Reason|
|---|---|---|---|
|3/9/2021|wOxxOm|Delete|Minified code|


In effect, they are preventing their userbase to reach more complex and qualitative scripts that require a lot of code and dependencies.

At the time of writing, the latest experimental packaged build of this script was *2.39 MB* in size, so, no compromize can be reached about minification either.

Therefore, we deployed a minimalist version on Greasyforks to notify users coming from this venue to read this page.
The full, long loved and experimental features can still be enabled by re-installing the script manually from github and forgetting about Greasy Forks.

0 comments on commit 1d33c1b

Please sign in to comment.