NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Facebook/脸书/非死不可突破网络限制自由上网,畅享全球社交网络! // @namespace Facebook-Access-Assistant // @version 1.0.3 // @description 自由浏览并畅享全球最大的社交网络平台Facebook,绕过网络限制Facebook浏览/自由访问Facebook/突破网络封锁的社交媒体访问工具/Facebook自由浏览插件/代理Facebook脚本/油猴脚本Facebook解封器/浏览被封锁的非死不可,还包括meta旗下的产品,例如Instagram和WhatsApp。您将能够畅快地浏览和发布内容,欣赏朋友的照片、视频,与亲友进行实时通话和信息交流。 // @author Facebook-Access-Assistant // @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOEAAADhCAMAAAAJbSJIAAAApVBMVEUIZf////////v///0AYv8AW/7B1v4/gP8AXf///v+guf8AZv7q8P4AWP4AYP/c6f3U4v4AVv7I2vwZb/3x9vzh7PwAXvqkwP+Ws/5nl/0jdP8zfP1RjPx8ov60yvzA1P9OhPcIafpgk/70+vmnwvh8pPpunfzp8vqWu/5BgvwAVP/U5f0nd/3h6f11nfu3zfuGrPw8gvfp9fmOrP7J3fmQtPqEq/XlAFytAAANY0lEQVR4nN2dCXfavBKGZS1EqbBwwJiwJUBYvyQNbUP//0+7NmRhMVjSjGxu3/b0tD0B/DDaZxEJfIoyRm/jdvOhcz/sDlb9l16r1eq99FeD7vC+89Bsx7fZj3h9BuLpfVn6K359vP85aolQ6iThnBNCVKb0L+m/kkTKULZGPzePr/H25/3IC2FqlsbbbNTSKZvOwM6Lay1F0hrN3hrMDyMyYcrGaHvaHWuZoqmLcN9ShCdCjyedRtpm03dAfSRkQhrXZj2RFBjunHTYmtXiayXMvvvFQ1eF2gnuG1JNHuqZKbEeDJHwcTKWbrY7FBdq8vZ0ZYSUNmZEwKy3Ly30zwiptWIQsni6ChPTYcVMKgn7nRiDEU5I2+sWSus8kRjPGvDVAJCQsteulhzXfh9Simg9iKB2hBHSaHCH1/vypMNRE8YIIGQsmgDnBhPxcNC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1G2J7xl8bygN3oilJOFnfm2crBhOuDUXi4eF3shlK1HuyHmQy6EmbN/mVxg9EDI5b35XW4HciNMR5zf8/Bsd0Qn1OGkblX4dU+OhJmeJ/oMIzIhT0bvjngBiJCx5ijMfUJUQh6uapBsYwBh9oTNXyLHjoiEWtw8MpcB5kswwnSBHw3kCSMSoVJar5qMWhUmPhGQMHvKaDg+YkQi1GoeWV/vfSI4YbpTWyxfwn0/FQKh4mFvU99eHw8UnDDIHoO+d8V3jwQTciEmTQqny4RCmIk+TUcqwSDkiR5Nj6NE3YVGmH7hrN0Z8MySAEIu9aDTtqvrfllohFsxunjoqvDOjVDLkHSnC/jgciBcwq0lWbSJDH/8i5DrdM5ZZa+zrMtfLGTCnYynaHqjudZSjG/mnegJ2Xgf8kJoLPbC+5PZNNpFTfqpBFMx4e84NTjStHBG/wNpVO/IF3XI2QAAAABJRU5ErkJggg== // @require http://cdn.staticfile.org/jquery/1.12.0/jquery.min.js // @supportURL http://letsmain.com/facebook-access-master?utm_source=openuserjs // @include *://*.meta.com/* // @match *://www.meta.com/* // @include *://*.facebook.com/* // @match *://www.facebook.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;" /> Facebook访问助手' + '</div>' + '<div id="access-helper-url-wrap" style="font-size:12px;padding:6px 4px;">' + '<a href="http://letsmain.com/facebook-access-master?utm_source=greasyfork-recommend" target="_blank" style="color:#3b8cff;text-decoration:none">http://letsmain.com/facebook-access-master</a>' + '</div>' + '</div>'; $('body').append(floatBoxHtml); var defaultVipUrl = 'http://letsmain.com/facebook-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(); })();