您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Polyv Shorcode for wordpress.
// ==UserScript== // @name Polyv Shorcode // @namespace https://www.iplaysoft.com // @version 0.41 // @description Polyv Shorcode for wordpress. // @author X-Force // @match http://my.polyv.net/* // @match https://my.polyv.net/* // @grant none // ==/UserScript== (function() { 'use strict'; if(window.location.protocol != "https:"){ var newUrl = window.location.href.replace("http://", "https://"); window.location=newUrl; } //Remove KeFu setTimeout(function(){ //document.getElementById( 'zhichiBtn' ).style.display = 'none'; var elem = document.getElementById( 'zhichiBtnBox' ); elem.parentNode.removeChild(elem); },1500); var template = '[video url="{{url}}" youku="" vqq="" bilibili=""]{{url}}[/video]'; var urlBase = 'https://share.polyv.net/front/video/preview?vid='; var vids = document.getElementsByClassName("video-list__duration"); for(var i=0;i<vids.length;i++){ var copy = vids[i].getElementsByClassName("copy-vid")[0]; var id = copy.getAttribute('data-clipboard-text'); var url= urlBase+id; var data= template.replace(/{{url}}/g,url); copy.setAttribute('data-clipboard-text',data); } })();