// ==UserScript== // @name New Userscript // @namespace http://tampermonkey.net/ // @version 1.0.2 // @description try to take over the world! // @author Star // @match https://*.xxx.cn/* // @grant none // @run-at document-start // ==/UserScript==
(function () { 'use strict';
// Function to set cookies functionsetCookies(cookieName, cookieValue, expirationDays) { deleteCookie(cookieName); const date = newDate(); date.setTime(date.getTime() + (expirationDays * 24 * 60 * 60 * 1000)); const expires = "expires=" + date.toUTCString(); document.cookie = cookieName + "=" + cookieValue + ";" + expires + ";path=/"; }
functiondeleteCookie(name) { document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;'; }
// Set cookies when user visits the specific page setCookies("username", "admin", 7); setCookies("88974ed8-6aff-48ab-a7d1-4af5ffea88bb", "admin", 7); setCookies("repository", "https://gitee.com/zhijiantianya/yudao-cloud", 7); setCookies("irV8jfnifwlj9o0Y20200815", "iGL4OvQbzTfToq5m20200815", 7);
console.log("%c 拦截注入成功 | Powered by Star", "color:#fff;background:linear-gradient(270deg,#986fee,#8695e6,#68b7dd,#18d7d3);padding:8px 15px;border-radius:15px");
window.$ = function () { console.log("jQuery is disabled on this page."); };
window.jQuery = window.$; // Ensure jQuery functions correctly (assuming they don't rely on $) // 保存原始的setTimeout引用 const originalSetTimeout = window.setTimeout;