Ninite download helper

adds some crucial functionality to Ninite batch download page

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name Ninite download helper
// @author mihau
// @version 0.5
// @description adds some crucial functionality to Ninite batch download page
// @include http*://www.ninite.com/*
// @include http*://ninite.com/*
// @namespace https://gf.qytechs.cn/users/182150
// ==/UserScript==

function buildthedllink() {
  if (location.hostname.indexOf('ninite.com') != -1) {

    function checkAll(field) {
      for (i = 0; i < field.length; i++)
        field[i].checked = true;
    }

    function uncheckAll(field) {
      for (i = 0; i < field.length; i++)
        field[i].checked = false;
    }

    uncheckAll(document.forms[0]);

    var newdiv;
    newdiv = '<div><h1 style="color:#FF0000;size:20px;">with download helper</h2><br /><h3>if you need all programs:<br /><button class="btn btn-primary btn-lg" onclick="checkAll(document.forms[0]);document.forms[0].submit();">download all programs at once</button></h3>';
    newdiv += '<h3>if you need the majority of the programs:<br /><button class="btn btn-primary btn-lg" onclick="checkAll(document.forms[0]);document.getElementsByClassName(\'js-homepage-get-installer\')[0].removeAttribute(\'disabled\')">check all programs but don\'t download them yet</button></h3>';
    newdiv += '<h3>if you only need some programs:<br /><button class="btn btn-primary btn-lg" onclick="uncheckAll(document.forms[0]);">reset and pick your programs individually</button></h3></div>';


    document.getElementsByClassName("col-sm-6")[0].innerHTML = newdiv; // 203

  }
}

window.addEventListener('DOMContentLoaded', buildthedllink, false);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址