// ==UserScript== // @name 阿里云盘签到 // @namespace https://yiso.fun // @version 0.0.1 // @author yiso // @match https://www.aliyundrive.com/* // @icon https://img.alicdn.com/imgextra/i1/O1CN01JDQCi21Dc8EfbRwvF_!!6000000000236-73-tps-64-64.ico // @description 阿里云盘每天自动签到 本脚会提交你的token到服务端 作者承诺只做阿里云盘的签到使用 介意勿装 // @require https://cdn.staticfile.org/jquery/3.6.0/jquery.min.js // @run-at document-body // @grant GM_xmlhttpRequest // @grant unsafeWindow // @connect yiso.fun // @antifeature tracking 阿里云盘每天自动签到 本脚会提交你的token到服务端 作者承诺只做阿里云盘的签到使用 介意勿装 // @downloadURL none // ==/UserScript== (function() { 'use strict'; unsafeWindow = unsafeWindow || window; var $ = $ || window.$; //当前浏览器的地址 let url = window.location.href if (url.includes('https://www.aliyundrive.com/drive', 0)) { setTimeout(function() { aliHomeButtonHeader(); }, 1000) } /** *alihome页导航栏按钮 */ function aliHomeButtonHeader() { let header = document.querySelector('.nav-menu--1wQUw'); if (header == null) { setTimeout(function() { aliHomeButtonHeader(); }, 1000) } setAliYunSign(header); } /** * 阿里云签到初始化 */ function setAliYunSign(header) { let div = document.createElement('div'); div.innerHTML = '