您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
download https://github.com/mainjzb/DBImageCache for local run
// ==UserScript== // @name 飙车党 // @namespace http://tampermonkey.net/ // @version 1.2.0 // @description download https://github.com/mainjzb/DBImageCache for local run // @author UUCCS // @include *://*javdb*.com*/* // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js // @require https://cdn.jsdelivr.net/npm/[email protected]/dist/lovefield.min.js // @require https://cdn.jsdelivr.net/npm/sweetalert2@9 // @run-at document-idle // @grant GM_xmlhttpRequest // @grant GM_addStyle // @grant GM_getValue // @grant GM_setValue // @grant GM_deleteValue // @grant GM_notification // @grant GM_setClipboard // @grant GM_getResourceURL // @grant GM_registerMenuCommand // @grant GM_info // @connect 114.taobao.com // @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw== // ==/UserScript== (function() { 'use strict'; function javDBScriptPreDownload(){ if( (/(javbd)*\/v\//).test(document.URL) ) { return } if( !(/(javbd.com)*\/*/g).test(document.URL) ) { return } console.log("javdb.com") //$('div.grid-item.column .uid ')[0] let javList = $('div.grid-item.column .uid ') for (const v of javList) { //console.log(v.getInnerHTML()); let javID = v.textContent // let $img = $(`<img name="javRealImg" title="无图" class=""></img>`); // $img.attr("src", "https://114.taobao.com/download/"+javID); // $(jav).after($img); GM_xmlhttpRequest( { method: 'GET', url: "https://114.taobao.com/img/"+javID, onload: function (responseDetails) { console.log (javID); } } ); } } function javDBScript(){ // if(document.domain != "www.google.com"){ // return // } if( !(/(javbd)*\.com/).test(document.URL) ) { return } GM_addStyle(` span.myimg{display: inline-block;} .container {max-width:90% !important;} .maxImg{width: 120%;max-width: 200% } .min {width:66px;min-height: 233px;height:auto;cursor: pointer;} /*Common.addAvImg使用*/ .col-md-3 {width: 20%;padding-left: 18px; padding-right: 2px;} .col-xs-12,.col-md-12 {padding-left: 2px; padding-right: 0px;} .col-md-7 {width: 79%;padding-left: 2px;padding-right: 0px;} .col-md-9 {width: max-content;} .col-md-offset-1 {margin-left: auto;} .hobby {display: inline-block;float: left;} .hobby_mov {width: 75%;} .hobby_p {color: white;font-size: 40px;margin: 0 0 0px;display: inline-block;text-align: right;width: 100%;} `); if( !(/(javbd)*\/v\//).test(document.URL) ) { return } //get javID let meta = document.getElementsByClassName("title is-4")[0].getElementsByTagName('strong')[0]; let arr = meta.textContent.split(" "); let javID = arr[0]; console.log("javID:" + javID); let divEle = $("div[class='video-meta-panel']")[0]; let $img = $(`<img name="javRealImg" title="" class="maxImg"></img>`); $img.attr("src", "https://114.taobao.com/img/"+javID); $img.attr("style", "float:left;cursor: pointer;"); if (divEle) { $(divEle).after($img); $img.wrap(`<span class="myimg"></span>`) $img.click(function () { $(this).toggleClass('min'); if ($(this).attr("class")) { this.parentElement.parentElement.scrollIntoView(); } }); } } function mainRun() { console.log("start") javDBScript(); javDBScriptPreDownload() } mainRun(); })();