plugLoader

Autorun plugCubed on plug.dj and add a custom mention sound.

  1. // ==UserScript==
  2. // @name plugLoader
  3. // @namespace FirstZero
  4. // @description Autorun plugCubed on plug.dj and add a custom mention sound.
  5. // @author TAT (plugcubed) + Docpify (Custom mention) + Unknown for original custom mention script.
  6. // @include https://plug.dj/*
  7. // @grant none
  8. // @version 1.0
  9. // ==/UserScript==
  10.  
  11. var a = function() {
  12. var a = {
  13. b: function() {
  14. if (typeof API !== 'undefined' && API.enabled)
  15. this.c();
  16. else
  17. setTimeout(function() { a.b(); }, 100);
  18. },
  19. c: function() {
  20. //var mp3 = "https://i.animemusic.me/funyaah.mp3"; // change the URL of the mp3 here (MUST be https link or do the following in your browser
  21. //go to about:config (put that in the url bar) then find -> security.mixed_content.block_active_content and set it as false.)
  22. //$.getScript('https://plug.runsafe.no/beta/freshy.js');
  23. $.getScript('https://plugmixer.sunwj.com/local');
  24. $.getScript('https://code.radiant.dj/rs.min.js');
  25. //uncomment this if you want to use mpv as flash replacement on plug (requires mozplugger + https://gist.githubusercontent.com/FirstZero/a7361b7a56912349ddc5/raw/):
  26. // $.getScript('https://rawgit.com/Epictek/3bbfb670f20a6f015366/raw/3ec6f33f9accd2e11649c7f8b93de7c72d7a04a0/plugmpv.js');
  27. }
  28. };
  29. a.b();
  30. };
  31. var b = document.createElement('script');
  32. b.textContent = '(' + a.toString() + ')();';
  33. document.head.appendChild(b);