view tgsmart-direct-link.user.js @ 24:8ce6738a3a81

(none)
author Edho Arief <me@myconan.net>
date Tue, 17 Nov 2015 10:56:29 +0000
parents d7cfa95436f9
children 28505554a8b9
line wrap: on
line source

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