// ==UserScript== // @name 最新免费节点,科学上网,魔法上网,免费梯子,免费机场,翻墙节点 // @namespace https://scriptcat.org // @version 1.0.7 // @description 最新免费节点,科学上网,魔法上网,免费梯子,免费机场,翻墙节点,ssr/v2ray/clash免费节点订阅地址分享,直连Youtube、Tiktok、ChatGPT尽情看视频网站,流量用不玩。 https://xingliancloud.github.io // @author esxu // @match https://baidu.com // @match https://www.baidu.com // @match https://bing.com // @match https://www.bing.com // @icon https://www.google.com/s2/favicons?sz=64&domain=greasyfork.org // @grant none // @license MIT // ==/UserScript== (function() { 'use strict'; // 创建打开按钮 const openButton = document.createElement('button'); openButton.textContent = '获取免费节点'; openButton.style.position = 'fixed'; openButton.style.top = '80px'; openButton.style.right = '10px'; openButton.style.zIndex = '1000000000000'; openButton.style.padding = '10px 16px'; openButton.style.fontSize = '14px'; openButton.style.cursor = 'pointer'; openButton.style.backgroundColor = '#4CAF50'; openButton.style.color = '#fff'; openButton.style.border = 'none'; openButton.style.borderRadius = '5px'; openButton.style.boxShadow = '0px 4px 8px rgba(0, 0, 0, 0.3)'; openButton.style.transition = 'all 0.3s'; // 添加悬停效果 openButton.onmouseover = function() { openButton.style.backgroundColor = '#45a049'; }; openButton.onmouseout = function() { openButton.style.backgroundColor = '#4CAF50'; }; // 将按钮添加到页面中 document.body.appendChild(openButton); // 创建弹出层 (div) const modalDiv = document.createElement('div'); modalDiv.style.display = 'none'; // 初始隐藏 modalDiv.style.position = 'fixed'; modalDiv.style.top = '80px'; modalDiv.style.right = 'calc(10px + 120px)'; modalDiv.style.zIndex = '10000000000001'; modalDiv.style.backgroundColor = 'white'; modalDiv.style.padding = '20px'; modalDiv.style.boxShadow = '0 4px 8px rgba(0, 0, 0, 0.3)'; modalDiv.style.borderRadius = '8px'; modalDiv.style.width = '250px'; modalDiv.style.textAlign = 'center'; // 创建关闭按钮 const closeButton = document.createElement('button'); closeButton.textContent = 'X'; closeButton.style.position = 'absolute'; closeButton.style.top = '10px'; closeButton.style.right = '10px'; closeButton.style.border = 'none'; closeButton.style.background = 'transparent'; closeButton.style.fontSize = '16px'; closeButton.style.color = '#333'; closeButton.style.cursor = 'pointer'; closeButton.style.padding = '0'; closeButton.style.width = '24px'; closeButton.style.height = '24px'; closeButton.style.borderRadius = '50%'; closeButton.style.transition = 'background-color 0.3s'; // 添加关闭按钮的悬停效果 closeButton.onmouseover = function() { closeButton.style.backgroundColor = '#f0f0f0'; }; closeButton.onmouseout = function() { closeButton.style.backgroundColor = 'transparent'; }; // 将关闭按钮添加到弹出层 modalDiv.appendChild(closeButton); // 添加内容到弹出层 const modalContent = document.createElement('div'); modalContent.innerHTML = `
性价比机场推荐:
星链云:「(点击注册)」