您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
音乐解析 网易、QQ音乐解析 欢迎收听!
当前为
// ==UserScript== // @name [timerd] 音乐解析 网易、QQ、酷狗(新增)、 没有广告!!!(定期更新增加新的解析网站)(2019-07-02)更新 // @namespace http://timerd.ml // @version 0.0.5 // @description 音乐解析 网易、QQ音乐解析 欢迎收听! // @author timerd // @include *://music.163.com/*song* // @include *://y.qq.com/*/song/* // @include *://*.kugou.com/song/* // @require http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js // @icon http://timerd.me/favicon.ico // @run-at document-end // @grant unsafeWindow // @license MIT2.0 // ==/UserScript== (function () { 'use strict'; function addInfrastructure() { let style = document.createElement("style"); style.appendChild(document.createTextNode(` #mywidget a { position: absolute; left: -75px; transition: 0.3s; padding: 15px 30px 15px 15px; text-decoration: none; color: white!important; border-radius: 0 8px 8px 0; font: 20px "Microsoft YaHei",SimHei,helvetica,arial,verdana,tahoma,sans-serif; min-width: 80px; text-align:right; white-space:nowrap; } #mywidget a:hover { left: 0; } #vparse { background-color: #f44336; } #myplaybutton { position:absolute; right:-8px; top: 14px; width:0px; height:0px; margin:0px; border-width: 16px; border-style: solid; border-color:transparent transparent transparent white; } #mywidget a img { width: 28px; height:34px; position: absolute; top:12px; right: 5px; align-items: center; }`)); document.head.appendChild(style); } let playurl = window.location.href; let rArray = playurl.split('?'); let cWeb = rArray[0]; const musicSites = new Array(); musicSites[0]=/163(.*)song/i; musicSites[1]=/QQ(.*)song/i; musicSites[2]=/(.*)kugou.com/i; musicSites.every((item) => { if (item.test(cWeb)) { addInfrastructure(); var jumpButton = $(` <div id="mywidget" href='javascript:void(0)' target='_blank' style="z-index:9999; position:fixed;left:0px;top:280px;"> <a href="#" id="vparse">❀音乐解析<div id="myplaybutton"></div></a> </div> `); $("body").append(jumpButton); // bind onclick event $("#mywidget").click(function () { var openUrl = window.location.href; window.open('https://chinese-elements.com/static/m.html?zxm=' + encodeURIComponent(openUrl)); }); return false; } return true; }); })()