Created
April 5, 2010 04:35
-
-
Save JEEN/356030 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| From 0cbdd6dfc6f6356c02446d8975399f462a6fcad1 Mon Sep 17 00:00:00 2001 | |
| From: JEEN <jeen@haak.(none)> | |
| Date: Mon, 5 Apr 2010 12:45:57 +0900 | |
| Subject: [PATCH] support urls | |
| --- | |
| etc/bookmarklet.js | 4 ++-- | |
| views/index.tt | 1 + | |
| 2 files changed, 3 insertions(+), 2 deletions(-) | |
| diff --git a/etc/bookmarklet.js b/etc/bookmarklet.js | |
| index 32d5fc1..02b38a6 100644 | |
| --- a/etc/bookmarklet.js | |
| +++ b/etc/bookmarklet.js | |
| @@ -1,4 +1,4 @@ | |
| -var support = { | |
| +var support_hosts = { | |
| 'blog.daum.net': 1, | |
| 'blog.naver.com': 1, | |
| 'jpnews.kr': 1, | |
| @@ -105,7 +105,7 @@ function jbs_compress(body_node) | |
| } | |
| href.match('http://(.+)'); | |
| -if (support[document.location.host]) { | |
| +if (support_hosts[document.location.host]) { | |
| href = 'http://util.myemy.com/filter/' + RegExp.$1; | |
| } | |
| var e=window.getSelection, | |
| diff --git a/views/index.tt b/views/index.tt | |
| index cd37f09..eaa534f 100644 | |
| --- a/views/index.tt | |
| +++ b/views/index.tt | |
| @@ -13,4 +13,5 @@ | |
| - ddanzi.com | |
| - blog.daum.net | |
| - blog.naver.com | |
| +- ytn.co.kr (reported by waejin++) - 2010/04/05 | |
| </pre> | |
| -- | |
| 1.6.6+GitX |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment