Jump to content

User:GorillaWarfare/script/curlies

From Wikipedia, the free encyclopedia

Installing the script

[edit]
  1. Open your common.js in edit mode (alternatively, go to your user page and append "/common.js" to the end of the URL and open the page in edit mode).
    • If you prefer to load this only on a specific skin, such as monobook, open your monobook.js in edit mode.
    • If you make a straight copy of this script, instead of "importing" it, you may not benefit from the enhancements and bug-fixes that are made from time to time. In the latter case, you may choose to watchlist this page so you will know when to update your copy for modifications to this script.
  2. Copy the following code onto the JavaScript page you have chosen in the previous step:
    importScript('User:GorillaWarfare/script/curlies.js'); // [[User:GorillaWarfare/script/curlies.js]]
    
  3. Save the page and (re-)load it – refresh the cache by following the instructions at the top of your JavaScript page.

Disclaimer: Use at your own risk and make sure you check the edit changes before you save.

Using the script

[edit]

Once you are in source editing mode, a link titled "Curlies" will appear in the left margin. Clicking this will convert all curly quotes to straight quotes, preview the change, and preload the following edit summary: "replaced curly quotes (“”‘’) with straight quotes ("') per MOS:CURLY, by script". Please check all changes before saving the page.