ppomppu 사이트에서 경유링크 해제

뽐뿌에서 외부링크를 클릭하면 경유주소로 연결돼 쇼핑몰 바로접속이 해제되는 문제가 있습니다. 이 스크립트는 링크를 항상 다이렉트로 연결해줍니다.

当前为 2015-04-19 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @id             fix@ppomppu
// @name           ppomppu 사이트에서 경유링크 해제
// @description    뽐뿌에서 외부링크를 클릭하면 경유주소로 연결돼 쇼핑몰 바로접속이 해제되는 문제가 있습니다. 이 스크립트는 링크를 항상 다이렉트로 연결해줍니다.
// @author         anonymous
// @version        1.1
// @license         public domain
// @include        http://*.ppomppu.co.kr/*
// @include        http://ppomppu.co.kr/*
// @run-at         document-end
// @namespace https://greasyfork.org/users/2425
// ==/UserScript==

var anchorTags=document.getElementsByTagName('a');
for (i in anchorTags){  
    if (anchorTags[i].href.match(/http:\/\/s.ppomppu.co.kr\S*encode=on\S*target=/))
      anchorTags[i].href = atob(decodeURIComponent(anchorTags[i].href.replace(/http:\/\/s.ppomppu.co.kr\S*encode=on\S*target=/,'')));
    else if (anchorTags[i].href.match(/http:\/\/s.ppomppu.co.kr\S*target=/))
      anchorTags[i].href = anchorTags[i].href.replace(/http:\/\/s.ppomppu.co.kr\S*target=/,'');
}