Greasy Fork is available in English.

CE autoSig development

Add dynamic content to your profile signature

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
Marliskilla
Installationen heute
0
Installationen gesamt
3
Bewertungen
0 0 0
Version
2025-07-26
Erstellt am
21.06.2025
Letzte Aktualisierung
26.07.2025
Größe
10,3 KB
Lizenz
n/a
Wird angewandt auf

I made a script to add dynamic content to the profile signature, see my own as an example. 

Installation:

  1. Install Tampermonkey or Violentmonkey browser add-on
  2. Go to https://greasyfork.org/de/scripts/540338-ce-autosig-default-template and install the script (includes the default template)

If you only want to make the default version work, you can add an element <div id="jobs" class="autoSig"></div> and <div id="trading" class="autoSig"></div> anywhere in your profile signature (make sure you use the code editor, you can access it via the <> button).

Or, even simpler, copypaste my own signature into that same code editor.

I don't know how popular this script will be, given its niche usecase. But if you struggle with the guide (see below), I can also try to make a custom version for your needs. For now, I'll do that for free.

For custom data, I'll try to write a step-by-step guide to explain the process of adding data from a new page:

  1. In the tampermonkey main function (see screenshot), you can use dataCollector.addPage(id, regex, handler, dataFormat, updateInterval) to collect data from a certain page. The arguments are:
    - id: it's a unique identifier for the page
    - regex: if the regex matches the cropped url, the handler will execute
    - handler: the function to execute when on the correct page
    - dataFormat: what data should be stored initially for this page
    - (optional) updateInterval: How often to update the data, default is 1 hour
  2. Write the actual handler for the page. I followed the format of the MegaScript (in<pagename>), but that is optional. Make sure it includes:
    • a return statement with the returned object following the format specified in addPage()
  3. In the handler for the settings page (inSettings()), register a new signature via sigConstructor.addSignature(elemId, handler, ...dataIds). The arguments are:
    - elemId: the id of the html-element in which the signature will be inserted
    - handler: the function that constructs the signature
    - (zero or more) dataIds: the ids of the collected data used in the handler, must match a subset of the ids registered via addPage()


  4. Create the function to construct the part of the signature related to certain data (e.g. constructJobSig()). Must include:
    - return statement that returns the constructed signature as a string


  5. Add an element with the corresponding id set in addSignature() to your profile signature. Note that anything in it will be overwritten. Make sure its classlist includes "autoSig".
  6. After saving the script and the profile signature, visit the page you added and update your profile signature again. The dynamic content should have been added.

That's it, feel free to leave suggestions, bugs or just general feedback in this threat. You can also dm me or send me a mail of course.

 

Also, I copied a few things from the AP MegaScript, such as the url filtering, so shoutout to K9 / Jablesi / AP for making it public and open-source.

Resources: images V1, images V2