From e92d0cd82ca0e97539aae17f4a518a9a3feaaaf3 Mon Sep 17 00:00:00 2001 From: Jordan Bates Date: Tue, 30 Apr 2013 08:26:13 -0700 Subject: [PATCH] Don't try to embed pastebin user profiles --- builds/4chan-X.js | 2 +- builds/4chan-X.user.js | 2 +- builds/crx/script.js | 2 +- src/Linkification/Linkify.coffee | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/builds/4chan-X.js b/builds/4chan-X.js index 3e63bf591..30db888d3 100644 --- a/builds/4chan-X.js +++ b/builds/4chan-X.js @@ -4308,7 +4308,7 @@ } }, pastebin: { - regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/, + regExp: /.*(?:pastebin.com\/(?!u\/))([^#\&\?]*).*/, el: function() { var div; diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index 365366f7b..6c099ef5f 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -4304,7 +4304,7 @@ } }, pastebin: { - regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/, + regExp: /.*(?:pastebin.com\/(?!u\/))([^#\&\?]*).*/, el: function() { var div; diff --git a/builds/crx/script.js b/builds/crx/script.js index 289890ff7..4b21f7065 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -4307,7 +4307,7 @@ } }, pastebin: { - regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/, + regExp: /.*(?:pastebin.com\/(?!u\/))([^#\&\?]*).*/, el: function() { var div; diff --git a/src/Linkification/Linkify.coffee b/src/Linkification/Linkify.coffee index 81e2c24b8..2a53df299 100644 --- a/src/Linkification/Linkify.coffee +++ b/src/Linkification/Linkify.coffee @@ -201,7 +201,7 @@ Linkify = text: -> JSON.parse(@responseText).title pastebin: - regExp: /.*(?:pastebin.com\/)([^#\&\?]*).*/ + regExp: /.*(?:pastebin.com\/(?!u\/))([^#\&\?]*).*/ el: -> div = $.el 'iframe', src: "http://pastebin.com/embed_iframe.php?i=#{@name}"