diff --git a/4chan_x.user.js b/4chan_x.user.js
index 6901d407c..5736f1009 100644
--- a/4chan_x.user.js
+++ b/4chan_x.user.js
@@ -532,11 +532,6 @@
callbacks: [],
init: function() {
var filter, key, m, regx, _i, _len;
- HTMLBlockquoteElement.prototype.toString = function() {
- return ($.el('a', {
- innerHTML: this.innerHTML.replace(/
/g, '\n')
- })).textContent;
- };
for (key in config.filter) {
if (!(m = conf[key].match(/(.+)/g))) {
continue;
@@ -616,7 +611,9 @@
},
com: function(root) {
var com;
- if (com = $('blockquote', root).toString()) {
+ if (com = ($.el('a', {
+ innerHTML: $('blockquote', root).innerHTML.replace(/
/g, '\n')
+ })).textContent) {
return filter.test('com', com);
}
},
diff --git a/script.coffee b/script.coffee
index 28f9592e6..4e8427239 100644
--- a/script.coffee
+++ b/script.coffee
@@ -388,13 +388,6 @@ filter =
regexps: {}
callbacks: []
init: ->
- HTMLQuoteElement.prototype.toString = ->
- return ($.el 'a', innerHTML: @innerHTML.replace /
/g, '\n').textContent
- #to remove when both chrom, ff and oprah will define blockquotes as HTMLQuoteElement
- if HTMLBlockquoteElement
- HTMLBlockquoteElement.prototype.toString = ->
- return ($.el 'a', innerHTML: @innerHTML.replace /
/g, '\n').textContent
-
for key of config.filter
unless m = conf[key].match /(.+)/g
continue
@@ -436,7 +429,7 @@ filter =
if (sub = if root.className is 'op' then $('.filetitle', root).textContent else $('.replytitle', root).textContent)
filter.test 'sub', sub
com: (root) ->
- if com = $('blockquote', root).toString()
+ if com = ($.el 'a', innerHTML: $('blockquote', root).innerHTML.replace /
/g, '\n').textContent
filter.test 'com', com
file: (root) ->
if file = $ '.filesize span', root