Hyperlink Styler and Style Storer for Google Docs 谷歌文件超連結樣式及樣式儲存小工具

Hyperlink Styler and Style Storer for Google Docs 谷歌文件超連結樣式及樣式儲存小工具

𝘽𝙖𝙘𝙠𝙜𝙧𝙤𝙪𝙣𝙙
✲ The add-on ‘Link Style’ broke earlier this year :'(

𝙎𝙩𝙮𝙡𝙚𝙨
✲ The Styles are effectively substyles of Subtitle or Normal Text.
✲ The Styles are not effectively saved as ‘styles’ per se, but as sets of context properties used for applying and/or matching. One single change in the paragraph (not text) properties results in losing the ‘style’ for that paragraph, unless the change is restored.
✲ Custom formatting is encouraged; the respective resets are minimal.

𝘼𝙥𝙥𝙡𝙞𝙘𝙖𝙩𝙞𝙤𝙣
✲ You may place the cursor where applicable, select within the paragraph, or select across paragraphs. Each will work correspondingly and according to the nature of the Style and the option described.
✲ This widget should be self-explanatory in practice.
✱ One constraint worth noting is that Reset Substyle will not apply to list items as it cannot be done fully. Advanced Docs Service is not involved for the time being.

𝙋𝙚𝙧𝙛𝙤𝙧𝙢𝙖𝙣𝙘𝙚
✲ 469 hyperlinks across 176 pages filled with 1.5-spaced text and some images can be updated within 140~220 seconds. Process time on average: 2.6 hyperlinks/sec
✲ Manual executions, 𝓲𝓮 Apply, can be stacked consecutively.

𝘾𝙧𝙚𝙙𝙞𝙩𝙨
✲ Inspired by the script provided by Daniel Wichers, https://webapps.stackexchange.com/a/177214 Thank you!
✲ An optimised version of it can be found here: https://gist.github.com/librarhyme/61260b34b31f2f4c9419ff65fb81b679 (more quickly and likely to fit within the 6-minute limit) 

𝙄𝙣𝙨𝙩𝙖𝙡𝙡𝙖𝙩𝙞𝙤𝙣
✲ Please refer to the tutorial provided in the first link above.
Made simple:
①❱ Google Docs: Extensions (擴充功能) > Apps Script
②❱ Clear existing code, paste the following script, 💾 save, ▶️ run. (Script name optional.)
③❱ Get all the way through the authorisation: Review > Select your ℀ > Advanced > ‘Go to… (unsafe)’
④❱ Go back to the doc file and you’re good to go! ;-)

𝙏𝙃𝙀 𝙎𝘾𝙍𝙄𝙋𝙏 (hyperlink-styler.js on GitHub Gist)
✲ Easier to copy it raw from here:

Comments

🔥 Popular

Project 2019 (delayed): ᠯᠢᠷᡳ ᠺᠣᠨᠦ᠋ᠰ ᠤᠢᠭᠤᠷᠵᠢᠨ│Лири Конус Уйгуржин│Liry Cone Uyghurjin│秤韻穹體回紇式蒙古文

Mongolian (Traditional) Keyboard App for Android 安卓用傳統蒙古文鍵盤應用

滿文行書銳圓體 Conical Sans in Manchu Running Script

MC 張天賦 (Cheung Tin Fu) 〈小心地滑 Caution Wet Floor〉 歌詞拼音 (粵拼) 連注釋 Lyrics Romanised (Jyutping) & Glossed

Key to Cantonese romanisation in 𝙅𝙮𝙪𝙩𝙥𝙞𝙣𝙜 (jyut6 ping3) 粵拼凡例

Anson Lo (盧瀚霆) 〈Megahit〉 歌詞拼音 (粵拼) 앤선 로우 (로한정) 〈메가히트〉 가사 독음 (홍콩 광동어 로마자) Lyrics Romanised (Jyutping)

ALITZ ❛Shooting for the Stars❜ Lyrics Romanised (Jyutping) 歌詞拼音 (粵拼) 에일맂즈 에일리스