您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add coub song author and title to coub description (if exist).
// ==UserScript== // @name Coub Song Description // @namespace http://tampermonkey.net/ // @version 0.1 // @description Add coub song author and title to coub description (if exist). // @author Kamil Spisak // @match https://coub.com/view/* // @grant none // ==/UserScript== (function() { const musicTitleElement = document.querySelectorAll('[class="musicTitle"]')[0]; const musicAuthorElement = document.querySelectorAll('[class="musicAuthor"]')[0]; const musicTitle = musicTitleElement.innerText || musicTitleElement.textContent; const musicAuthor = musicAuthorElement.innerText || musicAuthorElement.textContent; console.log(`${musicAuthor} - ${musicTitle} `); const musicDescriptionDiv = document.createElement('div'); musicDescriptionDiv.className = 'row'; musicDescriptionDiv.innerHTML =`<div><span style="color: #999999; font-weight: lighter">Song: </span>${musicAuthor} - ${musicTitle}</div>`; musicDescriptionDiv.style = "padding: 20px 0px 0px 3px; font-size: 18px; font-weight: bold;"; const coubDescriptionDiv = document.querySelectorAll('[class="coub__description"]')[0]; coubDescriptionDiv.appendChild(musicDescriptionDiv); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址