sample userscript template

sample userscript - Monday 15 March 2021 14:40:21 CET

目前為 2021-03-15 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

/**
 * MIT License
 *
 * Copyright (c) 2021 ccdd13
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 */
// ==UserScript==
// @name            sample userscript template
// @namespace       https://openuserjs.org/users/ccdd13
// @description     sample userscript - Monday 15 March 2021 14:40:21 CET
// @version         1.0.0
// @author          ccdd13
// @copyright       2021, ccdd13 (https://openuserjs.org/users/ccdd13)
// @license         MIT
// @homepage        https://openuserjs.org/scripts/ccdd13/sample_userscript_template
// @supportURL      https://openuserjs.org/scripts/ccdd13/sample_userscript_template/issues
// @contributionURL https://blockchain.com/btc/payment_request?address=1Nm2q6VjDcabFVhS6HyYdUzUWbUkg1
// @require         https://cdn.jsdelivr.net/npm/@violentmonkey/dom@1
// @require         https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1
// @require         https://cdn.jsdelivr.net/combine/npm/@violentmonkey/dom@1,npm/@violentmonkey/ui
// @require         https://openuserjs.org/src/libs/sizzle/GM_config.js
// @require         https://openuserjs.org/src/libs/Marti/GM_setStyle.js
// @require         https://openuserjs.org/src/libs/cuzi/RequestQueue.js
// @require         https://openuserjs.org/src/libs/wishingking/GM_createMenu.js
// @require         https://greasyfork.org/scripts/421384-gm-fetch/code/GM_fetch.js
// @require         https://greasyfork.org/scripts/418856-gm-datastore/code/GM%20DataStore.js
// @require         https://greasyfork.org/scripts/420061-super-gm-setvalue-and-gm-getvalue-greasyfork-mirror-js/code/Super_GM_setValue_and_GM_getValue_greasyfork_mirrorjs.js
// @require         https://greasyfork.org/scripts/419588-uniq/code/UniQ.js
// @require         https://greasyfork.org/scripts/23115-tampermonkey-support-library/code/Tampermonkey%20Support%20Library.js
// @require         https://greasyfork.org/scripts/5647-instasynchp-library/code/InstaSynchP%20Library.js
// @require         https://greasyfork.org/scripts/421266-easy-cookie-manager/code/Easy%20Cookie%20Manager.js
// @require         https://greasyfork.org/scripts/398877-utils-js/code/utilsjs.js
// @require         https://greasyfork.org/scripts/420842-vanilla-js-wheel-zoom/code/vanilla-js-wheel-zoom.js
// @require         https://greasyfork.org/scripts/411093-toast/code/Toast.js
// @require         https://greasyfork.org/scripts/422672-vanilla-js-tooltip-min-js/code/vanilla-js-tooltipminjs.js
// @match           http*://*/*
// @grant           GM_getValue
// @grant           GM_setValue
// @grant           GM_deleteValue
// @grant           GM_listValues
// @grant           GM_addValueChangeListener
// @grant           GM_removeValueChangeListener
// @grant           GM_addStyle
// @grant           GM_registerMenuCommand
// @grant           GM_unregisterMenuCommand
// @grant           GM_setClipboard
// @grant           GM_xmlhttpRequest
// @grant           GM_getResourceText
// @grant           GM_getResourceURL
// @grant           GM_download
// @grant           GM_openInTab
// @grant           GM_notification
// ==/UserScript==

// ==OpenUserScript==
// @author          ccdd13
// @collaborator    ccdd13
// ==/OpenUserScript==

/* jshint esversion: 6 */

alert(`sample userscript`)