# HG changeset patch # User Edho Arief # Date 1447406620 0 # Node ID d7cfa95436f940c68b4cd3316b98442d5ddcf4d2 # Parent c4a091629ffb804a634c325d36038d43b4a36482 diff -r c4a091629ffb -r d7cfa95436f9 tgsmart-direct-link.user.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tgsmart-direct-link.user.js Fri Nov 13 09:23:40 2015 +0000 @@ -0,0 +1,19 @@ +// ==UserScript== +// @name TG Smart Nuke Out Tracking Function +// @namespace https://myconan.net +// @version 1.0.0 +// @description Remove tracking function from links in TG Smart +// @author nanaya +// @match http://www.tgsmart.jp/* +// @grant none +// @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/tgsmart-direct-link.user.js +// ==/UserScript== + +;(function() { + Array.prototype.forEach.call( + document.querySelectorAll('a[onclick^="trackOutboundLink("'), + function(el) { + el.setAttribute("onclick", ""); + } + ) +}).call(); \ No newline at end of file