No more Affiliate Link! Plz Original URL!
< Feedback em Affiliate killer
// ==UserScript==
// @name 2chav Direct Link
// @description Strips jump page.
// @namespace sandbox
// @include http://2chav.com/*
// @version 1.1
// ==/UserScript==
(function(){
var links = document.querySelectorAll('a');
Array.prototype.forEach.call(links, function (a) {
var b = a.href.match(/^http:\/\/(www\.)?dmm\.co\.jp\/(.+)\/2chavnews-001/);
if (b) {
a.href = a.href.replace(/\/2chavnews-001(\/)?/gi,'');
//alert(a.href);
}
});
})();
http://www.dmm.co.jp/digital/videoa/**********/2chavnews-001/
http://www.dmm.co.jp/digital/videoa/*****/2chavnews-001/
http://www.dmm.co.jp/digital/videoa/*****/2chavnews-001
2chav.com site dmm link is not work