V2EX助手

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

Stan na 12-09-2016. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==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");
	}
});