NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Twitter&X小蓝鸟Elon Musk马斯克x自由访问 - 突破网络限制,无阻畅享推特! // @namespace Twitter-Access-Assistant // @version 1.0.4 // @description Twitter&X自由访问油猴脚本是一款强大的工具,旨在帮助用户绕过网络限制,实现畅快自由地浏览推特Twitter&X。无论您身处哪个国家或地区,这个脚本将为您打开通往推特的大门,让您享受全球社交媒体的精彩内容!推特解封工具/绕过网络推特脚本/突破网络封锁的自由访问工具/推特自由浏览插件/代理推特脚本/社交媒体自由访问工具/推特解封器/浏览被封锁无法访问。 // @author Twitter-Access-Assistant // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAAjVBMVEUAAAD////8/PwEBAT5+fkICAjCwsLn5+f29vYMDAy/v78ZGRny8vLv7+/Jycnb29usrKyMjIxTU1NFRUU8PDzi4uJ8fHzq6uqVlZVkZGSdnZ2GhoYhISHT09OwsLC4uLhXV1cxMTFxcXF3d3cpKSlmZmZOTk4oKChJSUmkpKRBQUE5OTmRkZEwMDAbGxubBVvyAAAN0ElEQVR4nO1diVoiORDO1ZIWEEURURnwPmb0/R9vqyqVdKcBaQ7p5tv8OzvfroF0qlOpu6IQCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJbYZG1PhQtqen7XnCWs9cT6DI6nyozsMyngf+zvcxYa2H1vzYPijcz2vaGB8np6cnP+P0ZFj3TfwILV55xtns9HoPE9bDq6wB+3f3HYDvf6ow47i7n+XXeK64leoH2hDKyJPiDG35HPj2l5IK5oLnKXu5NwrWPlmIs7VbaJT8J/Kd5B++ninQZ5A+peZ7Yft6yMXVOgJhRdLsyKa5FufA7TgV/JnXFnG7A7nnsQ6Jg12f9AHcTltogCEOLVcH+F6ZH1V8KvEH7id3W6+KdO45H3cg8my/q6+D3BqjlhJIP3L7aF63nJ3shReSMYQGCBTijjfRyM6oE2GEB4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jkWSjdEIqzisbgN4kNs2EmoXejNhx5LtYs8zcjL2t7el157hU/Sx1V+9Cd+mAOzNXRzC5cRlw/jfQ88arqh7qSpUpu5DRT2tyIQBeiAsoq4k7M4b0qGnXF3u0ya6QHr+tR8T2GGaZsloERx3VGKootxgFzMKMMKw/a+kfujBuEK1t57xbCsjTxHp964wr4oO4o2zrd0jpR119QdGgMvZXyvwVZcKviXZdBUC9FFKiOmoTvnaB+MzKKXwhjsa9rpya/+8m+1+MsUuBzAXXF7yI7oUuTaUJ5sp0cXJriq/rKMDusis5HNuw+8+PwK39Oy28v1N597rzCgiI2gyXTIBqmhLOp/cpCAO4nyTHQtc3z4xSsy0Bx8a3mwTcQrS/mpIMrt8/pv/AzUdI9FFHw1DuUq4nucckRTGbt7EyjZaGdLWHQBC5f6/A4oP8ExBncz2x5IBBPcmHUElk3X38XMKykqN9jZmnL2+nWpHnwFUJ4e5CSeF8/cj+emq9OuxgaBrh2Qh9Owxxda0+Y72G8I9Nifeqo700G4VPPF63qftVl1lPkBf9sqL2afHpuuwaZHeU1IQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQkJCQsL/DP8B831t1v+cvqkAAAAASUVORK5CYII= // @require http://cdn.staticfile.org/jquery/1.12.0/jquery.min.js // @supportURL http://letsmain.com/twitter-access-master?utm_source=openuserjs // @include *://*.x.com/* // @match *://www.x.com/* // @include *://*.twitter.com/* // @match *://www.twitter.com/* // @include *://*.bing.com/* // @include *://*.yandex.com/* // @include *://*.duckduckgo.com/* // @include *://*.baidu.com/* // @include *://*.sogou.com/* // @include *://*.so.com/* // @include *://*.sm.cn/* // @include *://*.startpage.com/* // @include *://*.fsoufsou.com/* // @include *://*.deepl.com/* // @grant GM_getValue // @grant GM_setValue // @grant GM_download // @grant GM_addStyle // @grant GM_openInTab // @grant unsafeWindow // @run-at document-idle // @run-at document-start // @grant GM_setClipboard // @grant GM_getResourceURL // @grant GM_getResourceURL // @grant GM_getResourceText // @grant GM_xmlhttpRequest // @compatible Chrome // @compatible Edge // @compatible Firefox // @compatible Safari // @compatible Opera // @license MIT // ==/UserScript== (function() { 'use strict'; var $ = window.jQuery; if (!$) { var script = document.createElement('script'); script.src = 'https://code.jquery.com/jquery-3.6.1.min.js'; document.head.appendChild(script); $ = window.jQuery; } var currentUrl = window.location.href; var currentHost = window.location.host; var resourceAnalysis = {}; resourceAnalysis.addHtml = function() { var logoImgUrl = GM_getResourceURL('logo'); var floatBoxHtml = '<div style="position:fixed;z-index:1076134;cursor:pointer;top:68px;left:0px;">' + '<div id="access-helper-wrap" style="width:136px;height:28px;line-height:28px;text-align:center;font-size:12px;color:#fff;background-color:#7C3AED;border:1px solid #7C3AED;border-left:none;border-top-right-radius:5px;border-bottom-right-radius:5px;">' + '<img src="' + logoImgUrl + '" style="width:20px;height:20px;position:relative;top:5px;" /> Twitter&X访问助手' + '</div>' + '<div id="access-helper-url-wrap" style="font-size:12px;padding:6px 4px;">' + '<a href="http://letsmain.com/twitter-access-master?utm_source=greasyfork-recommend" target="_blank" style="color:#3b8cff;text-decoration:none">http://letsmain.com/twitter-access-master</a>' + '</div>' + '</div>'; $('body').append(floatBoxHtml); var defaultVipUrl = 'http://letsmain.com/twitter-access-master?utm_source=greasyfork-recommend&invitation-code=#'; $('body').on('click', '#access-helper-wrap', function() { defaultVipUrl = defaultVipUrl.replace(/#/g, encodeURIComponent(currentUrl)); window.open(defaultVipUrl, '_blank'); }); }; resourceAnalysis.init = function() { resourceAnalysis.addHtml(); }; resourceAnalysis.init(); const options = { hookEvents: ["contextmenu", "select", "selectstart", "copy", "cut", "dragstart"], unhookEvents: ["mousedown", "mouseup", "keydown", "keyup"], doms: true, hookAddEventListener: true, hookPreventDefault: true, addCss: true, iframeSrc: "about:blank", }; const shouldNotHook = (event) => !!event.closest("form"); const clearEvents = () => { const targets = [ document, document.body, ...document.getElementsByTagName("div"), ]; const iframe = document.querySelector(`iframe[src="${options.iframeSrc}"]`); if ( iframe && iframe.clientWidth > 99 && iframe.clientHeight > 11 ) { targets.push( iframe.contentWindow.document, iframe.contentWindow.document.body ); } for (const target of targets) { if (!target) continue; for (const eventType of options.hookEvents.concat(options.unhookEvents)) { const prop = "on" + eventType; target[prop] = null; } } }; const hookEvents = (originalAddEventListener) => { const newAddEventListener = function (type, listener, options) { const useCapture = typeof options === "boolean" ? options : options && options.capture; if (!options.hookEvents.includes(type)) { originalAddEventListener.call(this, type, listener, useCapture); } else { originalAddEventListener.call(this, type, (e) => { if (shouldNotHook(e) || !options.hookEvents.includes(e.type)) { e.preventDefault(); } else { listener(e); } }, useCapture); } }; EventTarget.prototype.addEventListener = newAddEventListener; document.addEventListener = newAddEventListener; }; const hookPreventDefault = (originalPreventDefault, eventNames) => { Event.prototype.preventDefault = function () { if (shouldNotHook(this) || !eventNames.includes(this.type)) { originalPreventDefault.call(this); } }; }; const addCss = () => { GM_addStyle(` html, * { -webkit-user-select: text !important; -moz-user-select: text !important; user-select: text !important; } ::-moz-selection { color: #FFF!important; background: #3399FF!important; } ::selection { color: #FFF!important; background: #3399FF!important; } `); }; const init = () => { if (options.doms) { setInterval(clearEvents, 9000); setTimeout(clearEvents, 1000); window.addEventListener("load", clearEvents, true); } if (options.hookAddEventListener) { hookEvents(EventTarget.prototype.addEventListener); } if (options.hookPreventDefault) { hookPreventDefault( Event.prototype.preventDefault, options.hookEvents.concat(options.unhookEvents) ); } if (options.addCss) { addCss(); } }; init(); })();