Cursor Mod

Modify the cursor when hovering over certain links

Stan na 31-01-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        Cursor Mod
// @description Modify the cursor when hovering over certain links
// @icon        https://mdn.mozillademos.org/files/9/alias.gif
// @version     0.1.1
// @license     GNU General Public License v3
// @copyright   2014, Nickel
// @grant       GM_addStyle
// @include     *
// @namespace https://greasyfork.org/users/10797
// ==/UserScript==

// Source: http://www.askvg.com/tip-show-different-cursors-for-javascript-links-and-hyperlinks-that-open-in-new-window/

// fallback (Chrome lacks GM functions)
if( typeof GM_addStyle != 'function' ) {
	function GM_addStyle(css) {
		var head, style;
		head = document.getElementsByTagName('head')[0];
		if( !head ){ return; }
		style = document.createElement('style');
		style.type = 'text/css';
		style.innerHTML = css;
		head.appendChild(style);
	}
}

// New tab/window
GM_addStyle(':link[target="_blank"], :visited[target="_blank"], :link[target="_new"], :visited[target="_new"] {cursor: alias;}');
// Javascript
GM_addStyle('a[href^="javascript:"] {cursor: copy;}');