23
|
1 // ==UserScript==
|
|
2 // @name TG Smart Nuke Out Tracking Function
|
|
3 // @namespace https://myconan.net
|
33
|
4 // @version 1.0.1
|
23
|
5 // @description Remove tracking function from links in TG Smart
|
|
6 // @author nanaya
|
|
7 // @match http://www.tgsmart.jp/*
|
|
8 // @grant none
|
|
9 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/tgsmart-direct-link.user.js
|
|
10 // ==/UserScript==
|
|
11
|
|
12 ;(function() {
|
33
|
13 "use strict";
|
|
14 var links = document.querySelectorAll("a[onclick^='trackOutboundLink('")
|
|
15 var removeOnClick = function(el) {
|
|
16 el.setAttribute("onclick", "")
|
|
17 }
|
|
18
|
|
19 Array.prototype.forEach.call(links, removeOnClick)
|
23
|
20 }).call(); |