您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
try to take over the world!
当前为
// ==UserScript== // @name pixiv 自動查看差分和評論 // @namespace https://greasyfork.org/zh-TW/scripts/406482-pixiv-%E8%87%AA%E5%8B%95%E6%9F%A5%E7%9C%8B%E5%B7%AE%E5%88%86%E5%92%8C%E8%A9%95%E8%AB%96 // @version 1.3 // @description try to take over the world! // @author fmnijk // @match https://www.pixiv.net/artworks/* // @grant none // ==/UserScript== (window.onload = function() { 'use strict'; var stop1 = -100; function keeptrying1() { if(document.querySelector('.emr523-0.eTWZCm') == null){ stop1 += 1; if(stop1 < 0){ setTimeout(( () => keeptrying1() ), 20); } }else{ document.querySelector('.emr523-0.eTWZCm').click(); } } setTimeout(( () => keeptrying1() ), 0); var stop2 = -100; function keeptrying2() { if(document.querySelector('._1Hom0qN') == null){ stop2 += 1; if(stop2 < 0){ setTimeout(( () => keeptrying2() ), 20); } }else{ document.querySelector('._1Hom0qN').click(); } } setTimeout(( () => keeptrying2() ), 0); /*var stop3 = -100; function keeptrying3() { if(document.querySelector('.sc-1mz6e1e-1.QBVJO') == null){ stop3 += 1; if(stop3 < 0){ console.log(stop3); setTimeout(( () => keeptrying3() ), 20); } }else{ var as = document.querySelectorAll('.sc-1mz6e1e-1.QBVJO a'); var imgs = document.querySelectorAll('.sc-1mz6e1e-1.QBVJO a img'); if(as.length != imgs.length){ stop3 += 1; if(stop3 < 0){ console.log(stop3); setTimeout(( () => keeptrying3() ), 20); } }else{ for (var i = 0; i < as.length; ++i) { imgs[i].src = as[i].getAttribute('href'); imgs[i].srcset = as[i].getAttribute('href'); imgs[i].removeAttribute("style"); imgs[i].setAttribute("style", "max-height: 100%;"); console.log("width = " + imgs[i].getAttribute('width')); document.querySelector('.sc-1nr368f-6.ertGlR').setAttribute("style", "width:1000px;"); }; } } } setTimeout(( () => keeptrying3() ), 0);*/ })();