AO3: Replace Y/N in works with your name

replaces Y/N and other placeholders in xReader fic with the name of your choice

作者
escctrl
日安装量
0
总安装量
253
评分
1 0 0
版本
2.1
创建于
2023-10-15
更新于
2025-10-27
大小
11.3 KB
许可证
MIT
适用于

💖 What it does

Automatically replaces "Y/N" and other placeholders within xReader fic, where they stand in for your own name or features.

🪴 How to use it

After you install the script, the replacement feature is still turned off. To enable it:

  1. Open any work.
  2. You'll have a new "Userscripts" option in the main menu bar. Select "Replace Y/N" from it. This opens the GUI.
  3. To start using the feature, you have to enable the "Replace text automatically" checkbox.
  4. The script comes with a few common placeholders for given and family name, to give you a starting point, but you'll want to enter your actual names here.
  5. Select "Save".

The various placeholders will then be replaced immediately every time you open a new fic.

🎨 How to configure it

The script comes with a few common placeholders out of the box, but you can add and change them as needed.

  1. Open any work.
  2. You'll have a new "Userscripts" option in the main menu bar. Select "Replace Y/N" from it. This opens the GUI.
  3. The first couple of rows contain common placeholders for given and family name, to give you a starting point. You can change both the placeholders and the replacement text as desired.
  4. Select "Add more" to add a new row.
  5. In the left textbox, enter the placeholder used by the fic author, for example (e/c).
  6. In the right textbox, enter the replacement text, for example your actual eye color.
  7. To delete a row, simply delete the text in both textboxes.
  8. Select "Save".

"Reset" deletes all configuration and disables the feature.

Every change to the configuration (Save or Reset) will automatically refresh the page, so you can see the changes take effect immediately.

Tips

  • If you enter the same placeholder with and without brackets (e.g. (Y/N) and Y/N) make sure to put the one in brackets first. The script runs through the placeholders in order. If the text contains "my name is (y/n)" and the y/n placeholder is replaced first, you'll end up with "my name is (something)" with the brackets still showing.
  • You can also use this script to replace other words you don't want to see... can't stand the word "moist"? Replace it with "damp"!
  • You can temporarily disable the auto-replace in case it interferes with other fic, by disabling the "Replace text automatically" checkbox and selecting "Save". All configuration will be kept, but the script won't change the work text anymore.

🐞 Known limitations

The script does not warn you if you configure the same placeholder for different texts. Only the first occurrence will be used.

🏛️ History

  • v2
    • toggle to disable without uninstalling script
    • "save" automatically refreshes page
  • v1 - support custom tokens
  • v0.x - initial version, improvements to dialog and supported placeholders