Webtiles Extend Module Loader

Load the WEM from other Webtiles sites as well.

  1. // ==UserScript==
  2. // @name Webtiles Extend Module Loader
  3. // @description Load the WEM from other Webtiles sites as well.
  4. // @version 1.2
  5. // @author ASCIIPhilia
  6. // @match https://crawl.kelbi.org/*
  7. // @match http://crawl.akrasiac.org:8080/*
  8. // @match https://underhound.eu:8080/*
  9. // @match https://cbro.berotato.org:8443/*
  10. // @match http://lazy-life.ddo.jp:8080/*
  11. // @match https://crawl.xtahua.com/*
  12. // @match https://crawl.project357.org/*
  13. // @match http://joy1999.codns.com:8081/*
  14. // @match https://crawl.nemelex.cards/*
  15. // @match https://cnc.abstr.net/*
  16. // @namespace https://greasyfork.org/users/663409
  17. // ==/UserScript==
  18.  
  19. (function () {
  20. 'use strict';
  21. function waitFor(checkFunction, checkDelay = 100) {
  22. return new Promise(resolve => {
  23. let i = setInterval(_ => {
  24. try {
  25. let check = checkFunction();
  26. check ? clearInterval(i) || resolve(check) : void 0
  27. } catch (e) {}
  28. }, checkDelay);
  29. });
  30. }
  31.  
  32. !async function () {
  33. await waitFor(_ => unsafeWindow.$, 100);
  34. $.getScript("https://dcssem.abstr.net/webtiles_module/release/1.0/script.js");
  35. }();
  36. })();