comparison tgsmart-direct-link.user.js @ 33:28505554a8b9

(none)
author Edho Arief <me@myconan.net>
date Sun, 25 Dec 2016 07:41:17 +0000
parents d7cfa95436f9
children 32a213717e6a
comparison
equal deleted inserted replaced
32:41953e59d06f 33:28505554a8b9
1 // ==UserScript== 1 // ==UserScript==
2 // @name TG Smart Nuke Out Tracking Function 2 // @name TG Smart Nuke Out Tracking Function
3 // @namespace https://myconan.net 3 // @namespace https://myconan.net
4 // @version 1.0.0 4 // @version 1.0.1
5 // @description Remove tracking function from links in TG Smart 5 // @description Remove tracking function from links in TG Smart
6 // @author nanaya 6 // @author nanaya
7 // @match http://www.tgsmart.jp/* 7 // @match http://www.tgsmart.jp/*
8 // @grant none 8 // @grant none
9 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/tgsmart-direct-link.user.js 9 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/tgsmart-direct-link.user.js
10 // ==/UserScript== 10 // ==/UserScript==
11 11
12 ;(function() { 12 ;(function() {
13 Array.prototype.forEach.call( 13 "use strict";
14 document.querySelectorAll('a[onclick^="trackOutboundLink("'), 14 var links = document.querySelectorAll("a[onclick^='trackOutboundLink('")
15 function(el) { 15 var removeOnClick = function(el) {
16 el.setAttribute("onclick", ""); 16 el.setAttribute("onclick", "")
17 } 17 }
18 ) 18
19 Array.prototype.forEach.call(links, removeOnClick)
19 }).call(); 20 }).call();