// ==UserScript== // @name 最新免费节点,科学上网,魔法上网,免费梯子,免费机场,翻墙节点 // @namespace http://scriptcat.org/ // @version 1.0.2 // @description 最新免费节点,科学上网,魔法上网,免费梯子,免费机场,翻墙节点,ssr/v2ray/clash免费节点订阅地址分享,直连Youtube、Tiktok、ChatGPT尽情看视频网站,流量用不玩。 https://xingliancloud.github.io // @author freenet // @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 = `

免费节点分享


性价比机场推荐:
星链云:「(点击注册)」



`; modalDiv.appendChild(modalContent); // 将弹出层添加到页面中 document.body.appendChild(modalDiv); // 打开弹出层 openButton.addEventListener('click', () => { if(!document.getElementById('freenode').value.trim()){ const script = document.createElement('script'); script.src = 'https://xingliancloud.github.io/free.js'; document.body.appendChild(script); } modalDiv.style.display = 'block'; }); // 关闭弹出层 closeButton.addEventListener('click', () => { modalDiv.style.display = 'none'; }); document.querySelector('.cp_btn').addEventListener('click', () => { navigator.clipboard .writeText(document.getElementById('freenode').value.trim()) .then(() => { console.log('复制成功') }) .catch(() => { console.log('复制失败') }) }) window.freeNodeCallBack = function(data) { document.getElementById("freenode").innerText = data; }; })();