您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Bypass redirected links.
当前为
// ==UserScript== // @name Redirect remover // @version 1.7.4.2 // @description Bypass redirected links. // @namespace idmresettrial // @author idmresettrial // @run-at document-end // @require http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js // @grant GM_addStyle // @icon http://i.imgur.com/cnWhhD8.png // Website list // @include * // End list // ==/UserScript== site = window.location.hostname; if (window.top !== window.self && site !== 'www.google.com') { return; } this.$ = this.jQuery = jQuery.noConflict(true); document.addEventListener('DOMContentLoaded', function () { switch (site) { case 'vozforums.com': case 'sinhvienit.net': case 'phienbanmoi.com': case 'forum.vietdesigner.net': case 'www.webtretho.com': { $('a').each(function () { url = unescape($(this).attr('href')); if (site === 'forum.vietdesigner.net') url = unescape(url); redirect = /[?=]http/i; if (redirect.test(url)) { $(this).attr('href', url.replace(/^.+[?=]http/i, 'http')); } }); break; } case 'adf.ly': case 'q.gs': case 'chathu.apkmania.co': { url = ''; if (window.ysmm) { ysmm = window.ysmm; url0 = ''; url1 = ''; for (i = 0; i < ysmm.length; i++) { if (i % 2 === 0) { url0 += ysmm.charAt(i); url1 += ysmm.charAt(ysmm.length - 1 - i); } } url = window.atob(url0 + url1); url = url.substring(2, url.length); } if (url.length > 0) { window.onbeforeunload = null; window.onunload = null; gogogo(url); } break; } case 'www.oni.vn': { domain = window.location.protocol + '//' + window.location.host + '/'; $.ajax({ type: 'GET', url: domain + 'click.html', data: $('html').html().match(/code=([^"]+)/i) [0], contentType: 'application/json; charset=utf-8', success: function (html) { url = html; gogogo(url); } }); break; } case 'ouo.io': { url = $('a#btn-main').attr('href'); gogogo(url); break; } case 'www.google.com': { setTimeout(function () { bVerify = $('div.recaptcha-checkbox-checkmark'); if (bVerify.length) bVerify.click(); }, 1000); break; } case 'acer-a500.ru': case 'vegaviet.com': { $('a').each(function () { url = unescape($(this).attr('href')); redirect = { 'acer-a500.ru': 'http://acer-a500.ru/engine/redir/index/leech_out.php?a:', 'vegaviet.com': 'http://vegaviet.com/redirect/?to=' }; if (url.indexOf(redirect[site]) === 0) { $(this).attr('href', window.atob(url.substring(redirect[site].length, url.length))); } }); break; } case 'www.fshare.vn': { csrf = $('input[name="fs_csrf"]'); if (csrf.length) { csrf = csrf.attr('value'); data = { speed: 'slow', fs_csrf: csrf }; $.post('/download/index', data).success(function (data) { $('<button class="btn-red free-btn download_btn" style="margin-bottom: 15px; display:none;" id="rrdownload"><div>Tải ngay (Redirect remover)</div></button>').insertBefore('button.download_btn'); $('#rrdownload').fadeIn(); $('#rrdownload').click(function () { window.location.replace(data.url); }); }); } break; } case 'www.facebook.com': { $('body').on('mouseenter', 'a[onclick^="LinkshimAsyncLink.swap"]', function () { $(this) [0].removeAttribute('onclick'); $(this) [0].removeAttribute('onmouseover'); $(this) [0].outerHTML += ''; }); break; } case 'muare.vn': { $('a.ProxyLink').removeClass('ProxyLink'); break; } case 'www.vn-zoom.com': { $('a[href^="http://www.mediafire.com/"]').click(function (e) { e.preventDefault(); $('body').append('<iframe style="visibility:hidden" id="rr" src="about:blank"></iframe>').find('iframe#rr').contents().find('body').append('<a onclick="window.open(this.href);return false;" target="_blank"></a>').find('a').attr('href', $(this).attr('href')) [0].click(); $('iframe#rr').remove(); }); break; } default: { //if ($('body').text().match(/\b(london|hotel|deal)s?\b/gi).length > 5) { selector = { 'baomoitoday.com': 'div[align="center"][style="padding:5px"] a', 'travelworld24h.com': 'div.cms-content a', 'kenhphunu180.com': 'center a, div#news_main a, strong a, div.main_content a' }; //if (typeof selector[site] === 'undefined') site = 'default'; url = $(selector[site]).attr('href'); gogogo(url); //} break; } } }); function gogogo(url) { if (typeof url !== 'undefined') { page = '' + '<html><head><title>Đang chuyển hướng...</title>' + '<style type="text/css">' + 'div#rr{margin:10px;}a{text-decoration:none;color:#000}.ellipsis{overflow:hidden;display:inline-block;vertical-align:bottom;-webkit-animation:ellipsis 1s infinite;-moz-animation:ellipsis 1s infinite}@-webkit-keyframes ellipsis{from{width:2px}to{width:12px}}@-moz-keyframes ellipsis{from{width:2px}to{width:12px}}' + '</style>' + '</head><body>' + '<div style="background-image:url(http://i.imgur.com/qflyJA3.gif?r=' + (new Date().getTime()) + ')"></div>' + // Redirect removed count '<div id="rr"><b>Đang chuyển hướng đến <a href="' + url + '">trang gốc</a></b><span class="ellipsis">...</span></div>' + '</body></html>'; $('html').html(page); $(window).unload(function () { $('title').html(url); $('body').html(''); }); window.location.replace(url); } }
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址