1
0

preview-head.html 573 B

1234567891011121314151617181920
  1. <script>
  2. // shim for GM functions
  3. var GM = GM || {
  4. getResourceUrl: (path) => new Promise((res) => {
  5. if(typeof path === "string")
  6. return res(`https://raw.githubusercontent.com/Sv443/BetterYTM/develop/assets/${path}`);
  7. return res(`https://picsum.photos/200`);
  8. }),
  9. copyToClipboard: function() {
  10. console.log("GM.copyToClipboard shim called (discarded)");
  11. },
  12. info: {
  13. script: {
  14. name: "BYTM-STORYBOOK",
  15. version: "0.0.1",
  16. namespace: "https://github.com/Sv443/BetterYTM",
  17. },
  18. },
  19. };
  20. </script>