Apple Accept program license agreement

Accepts the updated program license agreement automatically.

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         Apple Accept program license agreement
// @namespace    http://tampermonkey.net/
// @version      2024-08-06
// @description  Accepts the updated program license agreement automatically.
// @author       Marc PEREZ
// @match        https://developer.apple.com/account*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=apple.com
// @license      MIT
// @grant        none
// @require      http://ajax.googleapis.com/ajax/libs/jquery/3.7.1/jquery.min.js
// @require      https://update.greasyfork.org/scripts/383527/701631/Wait_for_key_elements.js
// ==/UserScript==

/* globals jQuery, $, waitForKeyElements */

function click(buttons) {
    buttons[0].click();
}

// Find the "Review Agreement" button and click it
waitForKeyElements("html body.dmf div#__next div.App.background div main#main.main div.Overview_Overview__4hiqf.Overview div.Overview_OverviewGrid__oysjU.grid div.BannerList_BannerList__MQG1f.BannerList ul.BannerListItems.no-bullet.no-margin-left.padding-bottom-small li.BannerList_BannerListItem__oyMAT.BannerListItem.row.BannerListItem-enter-done div.Banner_Banner__PsaWf.column.large-12 div.Banner_BannerButtons__c2PCh button.button", click);

// Find the "Agree" button and click it
waitForKeyElements("html body.dmf.no-scroll div#__next div.App.background div main#main.main div.Overview_Overview__4hiqf.Overview div.AgreementTermsModal div.AgreementModal_AgreementModal__Rq6Zz div.Modal.modal.Modal_Modal__BqzEV.Modal_DimmedModal__EmThY div.view.Modal_ModalView__3ZoZL div.Modal_ModalButtons__2_WNG.buttons button.button.button-block", click);