您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This script bypass twitter popup and go straight to profile page.
- // ==UserScript==
- // @name Prevent Twitter Popup
- // @author Mikhoul Based Heavily on Script From at_akada
- // @description This script bypass twitter popup and go straight to profile page.
- // @version 1.00
- // @include https://twitter.com/*
- // @namespace https://greasyfork.org/users/3930
- // ==/UserScript==
- function bind(arg, f){
- return function(){
- return f(arg, arguments);
- };
- }
- function main(){
- var list = document.body.getElementsByTagName('a');
- for(var i=0; i<list.length;++i){
- if(list[i].className.indexOf('js-action-profile') >= 0 || list[i].className.indexOf('twitter-atreply') >= 0){
- list[i].className = '';
- list[i].addEventListener('click',
- bind(list[i], function(link, args){
- document.location = link.href;
- args[0].stopPropagation();
- args[0].preventDefault();
- }));
- }
- }
- }
- setInterval(main, 1);