Greasy Fork

Greasy Fork is available in English.

科学上网,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,免费梯子,免费机场,免费节点一键获取。

免费节点一键获取,ss/ssr/v2ray/clash分享,免费节点,科学上网,免费梯子,免费机场,不需要注册,直连facebook/google/youtube,尽情看视频网站,流量用不玩。

当前为 2024-07-03 提交的版本,查看 最新版本

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name   科学上网,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,免费梯子,免费机场,免费节点一键获取。
// @name:en      onekeygetfreenode
// @name:zh-TW   科学上网,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,免费梯子,免费机场,免费节点一键获取。
// @name:zh-HK   科学上网,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,免费梯子,免费机场,免费节点一键获取。
// @namespace    http://tampermonkey.net/
// @version      1.0.99
// @description  免费节点一键获取,ss/ssr/v2ray/clash分享,免费节点,科学上网,免费梯子,免费机场,不需要注册,直连facebook/google/youtube,尽情看视频网站,流量用不玩。
// @description:en  Free node one-click access, scientific Internet access, free ladder, ssr/v2ray/clash free node real-time sharing, enjoy watching video sites, no longer have to worry about no traffic.
// @description:zh-TW  免费节点一键获取,科学上网,免费梯子,免费机场,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,尽情看视频网站,流量用不玩。
// @description:zh-HK  免费节点一键获取,科学上网,免费梯子,免费机场,ss/ssr/v2ray/clash分享,不需要注册,直连facebook/google/youtube,尽情看视频网站,流量用不玩。
// @author       clashgithub
// @match        *
// @match        *://*
// @match        *://*/*
// @run-at document-body
// @license MIT
// @icon         https://clashgithub.com/wp-content/themes/modown/static/img/favicon.ico


// ==/UserScript==
(function() {
    'use strict';
    // Your code here...
	let freenodehtml = `
    <div id="cnqj" style="display:none;height:${window.screen.height}px;top:0px;left:0px;background-color:#fafafa;  position:fixed;z-index:1001;" >
        <div class="gsnm" style="position:fixed;top:30px;left:10px;width:97%; border:2px solid #eee;border-radius:5px;padding:10px;background-color:#fcfcfc; box-shadow: 1px 1px 1px #eee;ont-size:12px;">
            <h1><b>免费节点分享</b></h1>
            <br/>
            <p>关注「<a href="https://t.me/s/v2raydailyupdate" target="_blank">免费节点每日更新 – Telegram</a>」,第一时间获得新鲜节点。</p>
            <br/>
            <p>免费节点来源:<br/>
            <a href="https://clashgithub.com/" target="_blank">https://clashgithub.com/</a><br/>
            <a href="https://github.com/aiboboxx/v2rayfree" target="_blank">https://github.com/aiboboxx/v2rayfree</a><br/>
            </p>
			<br/>
            <p>免费节点分享:<br/>
			<pre id="freenode">
			</pre>
			<button class="btn">点击复制</button>
            </p>
            <br/>
            <p>更多免费节点:<br/><br/>
            V2rayA机场 提供免费公益节点,请自行前往注册获取。<br/><br/>
            网站注册地址:「<a href="https://560888.xyz/#/register?code=srOLpruw" target="_blank" >V2rayA官网(点击注册)」</a>
            <br/></p>
        </div>
		<div style="position:fixed;right:0px;"><button id="btnClose" style="width: 30px;height: 30px;">X</button></div>
    </div>`
    function toggle(){
        if(document.getElementById('cnqj').style.display=="none"){
            document.getElementById('cnqj').style.display="block";
        }else{
            document.getElementById('cnqj').style.display="none";
        }
    }
	function btnClose(){
         document.getElementById('cnqj').style.display="none";
     }
 	if (window.location.href.includes("bing.com") || window.location.href.includes("www.baidu.com")){
		document.body.insertAdjacentHTML("afterbegin",'<p id="triggerBtn" style="position:fixed;top:100px;right:20px;z-index:1000">免费节点分享</p>');
		document.body.insertAdjacentHTML("afterbegin",freenodehtml);
		document.getElementById("triggerBtn").addEventListener("click",toggle);
		document.getElementById("btnClose").addEventListener("click",btnClose);
		document.querySelector('.btn').addEventListener('click', () => {
			navigator.clipboard
			  .writeText(document.querySelector('#freenode').textContent)
			  .then(() => {
				console.log('复制成功')
			  })
			  .catch(() => {
				console.log('复制失败')
			  })
		})
		fetch("https://clashgithub.com/node/getnode.php")
		  .then((response) => response.text())
		  .then((res) => {
			const dom = document.getElementById("freenode");
			//console.log(dom.innerText,res)
			dom.innerText = res;
			})
			.catch((error)=>{console.log('error: ', error.message);})
		}
})();