🔍 NyanMusic Search - Script oficial NyanMusic.net

Procure facilmente palavras chaves no NyanMusic.net

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         🔍 NyanMusic Search - Script oficial NyanMusic.net
// @name:en      🔍 NyanMusic Search - Official script of NyanMusic.net
// @namespace    https://www.nyanmusic.net/?referral=nyanmusic_search
// @version      1.0.0
// @description  Procure facilmente palavras chaves no NyanMusic.net
// @description:en  Search keywords in NyanMusic.net
// @author       dk (dkzerah)
// @match        *://*/*
// @icon         https://www.google.com/s2/favicons?domain=www.nyanmusic.net
// @grant        none
// @run-at       context-menu
// @supportURL   https://discord.gg/fYeHEywhWW
// @license MIT
// ==/UserScript==

(function() {
    var selection = getSelection();
    var formattedText = "https://www.nyanmusic.net/search/" + selection;
    formattedText = formattedText.replace(/\s/g, "%20");
    formattedText = formattedText.replace(/,/g, "%2C");
    formattedText = formattedText.replace(/!/g, "%21");
    window.open(formattedText);
})();