您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
add marklist for jav01 by javdb
当前为
// ==UserScript== // @name jav01 markList // @namespace http://tampermonkey.net/ // @version 0.1 // @description add marklist for jav01 by javdb // @author moonwizard // @license MIT // @match https://www.av01.tv/* // @icon https://www.google.com/s2/favicons?sz=64&domain=av01.tv // @grant GM_xmlhttpRequest // ==/UserScript== (function () { 'use strict'; let fanHao = document.getElementById('id_list').children[5].innerHTML; console.log(fanHao); let myUrl = "https://javdb.com/search?q=" + fanHao; let trueUrl = ""; console.log('我的脚本加载了'); var button = document.createElement("button"); //创建一个input对象(提示框按钮) button.id = "mark"; button.textContent = "收藏"; GM_xmlhttpRequest({ method: "GET", url: myUrl, onload: function (res) { let domNew = new DOMParser().parseFromString(res.responseText, "text/html"); let tempUrl = domNew.getElementById('videos').getElementsByClassName('box')[0] + ""; trueUrl = "https://javdb.com" + tempUrl.substr(-8); console.log('lalalall' + trueUrl); }, }); //绑定按键点击功能 button.onclick = function (){ window.open(trueUrl); return; }; var x = document.getElementsByClassName('info_row')[0]; x.appendChild(button); })();