您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds install buttons to all the search result pages, nice for mass installing
当前为
- // ==UserScript==
- // @name Greasyfork install button on search
- // @namespace Danielv123
- // @version 1.0
- // @description Adds install buttons to all the search result pages, nice for mass installing
- // @author You
- // @match https://greasyfork.org/*
- // @requires jQuery
- // @grant none
- // ==/UserScript==
- if(document.querySelector("#user-script-list")){
- for(i = 1; document.querySelector("#user-script-list").childNodes.length > i; i++) {
- (function(i){
- if(document.querySelector("#user-script-list > li:nth-child(" + i + ")>article>h2>a")) {
- console.log(document.querySelector("#user-script-list > li:nth-child(" + i + ")>article>h2>a"));
- $("<div>").load(document.querySelector("#user-script-list > li:nth-child(" + i + ")>article>h2>a").href+" #install-area", function() {
- $("#user-script-list > li:nth-child(" + i + ")").append($(this).html());
- console.log(i);
- });
- }
- })(i);
- }
- }
- if(document.querySelector("#browse-script-list")){
- for(i = 1; document.querySelector("#browse-script-list").childNodes.length > i; i++) {
- (function(i){
- if(document.querySelector("#browse-script-list > li:nth-child(" + i + ")>article>h2>a")) {
- console.log(document.querySelector("#browse-script-list > li:nth-child(" + i + ")>article>h2>a"));
- $("<div>").load(document.querySelector("#browse-script-list > li:nth-child(" + i + ")>article>h2>a").href+" #install-area", function() {
- $("#browse-script-list > li:nth-child(" + i + ")").append($(this).html());
- console.log(i);
- });
- }
- })(i);
- }
- }