CE autoSig development

Add dynamic content to your profile signature

作者
Marliskilla
今日安裝
0
安裝總數
0
評價
0 0 0
版本
2025-07-26
建立日期
2025-06-21
更新日期
2025-07-26
尺寸
10.3 KB
授權條款
未知
腳本執行於

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