plugLoader

Autorun Plug.dj scripts add a custom mention sound.

目前为 2015-04-06 提交的版本。查看 最新版本

  1. // ==UserScript==
  2. // @name plugLoader
  3. // @namespace FirstZero
  4. // @description Autorun Plug.dj scripts add a custom mention sound.
  5. // @author Docpify (Custom mention) + Sunxperous (Plugmixer) + Unknown for original custom mention script.
  6. // @include https://plug.dj/*
  7. // @grant none
  8. // @version 22.03.2015
  9. //
  10. // ==/UserScript==
  11.  
  12. var a = function() {
  13. var a = {
  14. b: function() {
  15. if (typeof API !== 'undefined' && API.enabled)
  16. this.c();
  17. else
  18. setTimeout(function() { a.b(); }, 100);
  19. },
  20. c: function() {
  21. 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
  22. //go to about:config (put that in the url bar) then find -> security.mixed_content.block_active_content and set it as false.)
  23. $.getScript('https://code.radiant.dj/rs.min.js');
  24. $.getScript('https://plug.runsafe.no/noisy.js', function(){ addMention(mp3);});
  25. $('.background').remove();
  26. $.getScript('https://plugmixer.sunwj.com/local');
  27. //uncomment this if you want to use mpv as flash replacement on plug (requires mozplugger + https://gist.githubusercontent.com/FirstZero/a7361b7a56912349ddc5/raw/):
  28. // $.getScript('https://rawgit.com/Epictek/3bbfb670f20a6f015366/raw/d96ed7d5df15004650b99fd635be3f7e012a7397/plugmpv.js');
  29. };
  30. };
  31. a.b();
  32. };
  33. var b = document.createElement('script');
  34. b.textContent = '(' + a.toString() + ')();';
  35. document.head.appendChild(b);