V2EX助手

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

Verze ze dne 04. 09. 2016. Zobrazit nejnovější verzi.

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

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

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

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

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

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.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name         V2EX助手
// @namespace    http://zhihaofans.com
// @version      0.2
// @description  V2EX助手,将v2ex.com的帖子超链接改为新窗口打开
// @author       zhihaofans
// @match        http://www.v2ex.com/go/*
// @match        http://www.v2ex.com/?tab=*
// @match        http://www.v2ex.com
// @grant        none
// @note         V0.1:初始版本
// @note         V0.2:更新了图标
// @icon		 http://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");
	}
});