Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template Placeholder List #2316

Open
Daviid-P opened this issue Dec 31, 2024 · 0 comments
Open

Template Placeholder List #2316

Daviid-P opened this issue Dec 31, 2024 · 0 comments

Comments

@Daviid-P
Copy link

Is there a list of placeholders that can be used in the templates?

From the template itself I get:

<$DATE$>
<$URL$>
<$ICON$>

and I was wondering if there was a <$ID$> or something.

I'm trying to change it to

// ==UserScript==
// @name         New Userscript
// @namespace    http://tampermonkey.net/
// @version      <$DATE$>
// @description  try to take over the world!
// @author       You
// @match        <$URL$>
// @icon         <$ICON$>
// @grant        none
// ==/UserScript==

const scriptFinishedEvent = new CustomEvent("scriptFinished", {scriptId: <$ID$>});

(function() {
    'use strict';

    // Your code here...

    window.dispatchEvent(scriptFinished);
})();

So I can window.addEventListener('scriptFinished') in other scripts to keep some sort of order.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant