constants.ts 591 B

123456789101112131415
  1. /** Set to true to enable debug mode for more output in the JS console */
  2. export const dbg = true;
  3. /** Specifies the hard limit for repetitive tasks */
  4. export const triesLimit = 50;
  5. /** Specifies the interval for repetitive tasks */
  6. export const triesInterval = 150;
  7. /** Info about the userscript, parsed from the userscript header (tools/post-build.js) */
  8. export const info = Object.freeze({
  9. name: GM.info.script.name,
  10. version: GM.info.script.version,
  11. namespace: GM.info.script.namespace,
  12. lastCommit: "{{BUILD_NUMBER}}" as string, // assert as generic string instead of union
  13. });