Preview quotes fetched with the thread updater.
This commit is contained in:
parent
fc8863e3c7
commit
4c1ea03040
@ -7,7 +7,6 @@
|
|||||||
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
// @license MIT; http://en.wikipedia.org/wiki/Mit_license
|
||||||
// @include http://boards.4chan.org/*
|
// @include http://boards.4chan.org/*
|
||||||
// @include http://sys.4chan.org/*
|
// @include http://sys.4chan.org/*
|
||||||
// @include file://*
|
|
||||||
// @updateURL http://userscripts.org/scripts/source/51412.meta.js
|
// @updateURL http://userscripts.org/scripts/source/51412.meta.js
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
@ -1664,13 +1663,17 @@
|
|||||||
};
|
};
|
||||||
quotePreview = {
|
quotePreview = {
|
||||||
init: function() {
|
init: function() {
|
||||||
var preview, quote, quotes, _i, _len, _results;
|
var preview;
|
||||||
|
g.callbacks.push(quotePreview.node);
|
||||||
preview = $.el('div', {
|
preview = $.el('div', {
|
||||||
id: 'qp',
|
id: 'qp',
|
||||||
className: 'reply'
|
className: 'reply'
|
||||||
});
|
});
|
||||||
$.hide(preview);
|
$.hide(preview);
|
||||||
$.append(d.body, preview);
|
return $.append(d.body, preview);
|
||||||
|
},
|
||||||
|
node: function() {
|
||||||
|
var quote, quotes, _i, _len, _results;
|
||||||
quotes = $$('a.quotelink');
|
quotes = $$('a.quotelink');
|
||||||
_results = [];
|
_results = [];
|
||||||
for (_i = 0, _len = quotes.length; _i < _len; _i++) {
|
for (_i = 0, _len = quotes.length; _i < _len; _i++) {
|
||||||
|
|||||||
@ -1320,9 +1320,11 @@ titlePost =
|
|||||||
|
|
||||||
quotePreview =
|
quotePreview =
|
||||||
init: ->
|
init: ->
|
||||||
|
g.callbacks.push quotePreview.node
|
||||||
preview = $.el 'div', id: 'qp', className: 'reply'
|
preview = $.el 'div', id: 'qp', className: 'reply'
|
||||||
$.hide preview
|
$.hide preview
|
||||||
$.append d.body, preview
|
$.append d.body, preview
|
||||||
|
node: ->
|
||||||
quotes = $$ 'a.quotelink'
|
quotes = $$ 'a.quotelink'
|
||||||
for quote in quotes
|
for quote in quotes
|
||||||
$.bind quote, 'mouseover', quotePreview.mouseover
|
$.bind quote, 'mouseover', quotePreview.mouseover
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user