AO3: highlight author fandoms CONFIG

Config script for AO3 fandom highlighter

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         AO3: highlight author fandoms CONFIG
// @namespace    https://greasyfork.org/en/users/757649-certifieddiplodocus
// @version      1.0
// @description  Config script for AO3 fandom highlighter
// @author       CertifiedDiplodocus
// @match        http*://archiveofourown.org/users/*
// @exclude      http*://archiveofourown.org/users/YourUsernameHere*
// @exclude      /^https?:\/\/archiveofourown\.org\/users\/[^\/]+\/(?!pseuds)/
// @icon         https://upload.wikimedia.org/wikipedia/commons/8/8c/Cib-archive-of-our-own_%28CoreUI_Icons_v1.0.0%29.svg
// @license      GPL-3.0-or-later
// @grant        none
// @run-at       document-start
// ==/UserScript==

/* Icon by FSock on Wikimedia Commons. Licensed under CC4.0 https://creativecommons.org/licenses/by/4.0/deed.en
https://commons.wikimedia.org/wiki/File:Cib-archive-of-our-own_(CoreUI_Icons_v1.0.0).svg */

(function() {
    'use strict';

    window.fandomHighlighterConfig = {

        /******************************** CONFIG **********************************/
        // Edit this file with your own settings, then check that both it and     //
        // "AO3 fandom highlighter" are enabled in Greasemonkey/Tampermonkey.     //
        // When the main script updates, your configuration will be unchanged.    //
        /**************************************************************************/

        // Fill in your own username in the @exclude line above
        // to avoid lighting up your own dashboard.

        // Favourite fandoms list (regexp can be used - see below for tips)
        fandomsToHighlight: ["Original Work", "Critical Role", "Doctor Who", "Naruto", "Scooby.Doo",
                             "Holmes", "^Avatar:", "The Avengers .Marvel"],

        // Fandoms to highlight in a different colour (specify colour for each).
        //    - overrides the default colour
        //    - you can add fandoms here without removing them from the first list

        fandomsInColour: {"Die Hard":"#fda7d1", //    pink
                          "Scooby Doo":"#adf7d1", //  light green
                          "^Putin RPF":"red", //      regexp patterns can be used
                          "Naruto": "orange", // named colors work too
                         },

        // SOME NOTES ON REGEXP AND SEARCH RESULTS *******************************/

        // By default, the search matches any string containing the text in quotes:
        //     "Sherlock" matches "Sherlock (TV)", "Sherlock Holmes" and "Young Sherlock Holmes"
        // For more control, use the regex symbols "^" (string start) and/or "$" (string end):
        //     "^Sherlock" matches "Sherlock Holmes" but not "Young Sherlock Holmes"
        //     "^Star Trek$" matches only "Star Trek", not "Star Trek: The Original Series" or "Star Trek: Picard"
        // "." matches any single character:
        //     "Scooby.Doo" matches "Scooby Doo" and "Scooby-Doo"

        // SPECIAL CHARACTERS: If a fandom contains any of the following characters
        // . + * ? ^ $ { } | \
        // they must be preceded (escaped) with a backslash (e.g. "House M\.D\.")
        // for the script to work.
        //
        // ( ) and [ ]
        // must be escaped with a double backslash: "Thor \\(Marvel\\)"
        // Or just use a period, which matches any character: "Thor .Marvel."

        // FORMAT: enable/disable bold text, highlighting, and custom highlighting
        boldIsOn: true,
        highlightIsOn: true,
        customHighlightIsOn: true,

        highlightDefaultCol: 'LightYellow', // default highlight colour

    }

})();