V2EX助手

V2EX助手,将v2ex.com的帖子超链接改为新窗口打开

Pada tanggal 12 September 2016. Lihat %(latest_version_link).

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         V2EX助手
// @namespace    http://zhihaofans.com
// @version      0.2.1
// @description  V2EX助手,将v2ex.com的帖子超链接改为新窗口打开
// @author       zhihaofans
// @match        *://www.v2ex.com/go/*
// @match        *://www.v2ex.com/?tab=*
// @match        *://www.v2ex.com
// @grant        none
// @note         V0.1:初始版本
// @note         V0.2:更新了图标
// @icon		 https://www.v2ex.com/static/img/icon_rayps_64.png
// ==/UserScript==
$(document).ready(function(){
 	var v2ex_js_links=$("span.item_title a");
	var v2ex_js_links_num=v2ex_js_links.length;
	console.log(v2ex_js_links_num);
	for(var v2ex_js_a=0;v2ex_js_a<v2ex_js_links_num;v2ex_js_a++)
	{
		var v2ex_js_link=$("span.item_title a:eq("+v2ex_js_a+")");
		v2ex_js_link.attr("target","_blank");
	}
});