Archived
1
0

re-enable dynamic reply

This commit is contained in:
Jeff Becker 2017-01-16 11:21:45 -05:00
parent 8c2ddda51a
commit 11b5ca6a1b

View File

@ -339,7 +339,7 @@ function inject_hover(prefix, el, parent) {
// inject post hover for all backlinks in an element
function inject_hover_for_element(elem) {
var elems = elem.getElementsByClassName("backlink");
var elems = elem.getElementsByClassName("postno");
var ls = [];
var l = elems.length;
for ( var idx = 0 ; idx < l ; idx ++ ) {
@ -352,19 +352,11 @@ function inject_hover_for_element(elem) {
}
function init(prefix) {
// because no one cares about this feature :|
return;
// inject posthover ...
inject_hover_for_element(document);
if ( /\.html$/.test(document.location.pathname) && ! (/ukko/.test(document.location.pathname)) ) {
// board / thread page
console.log("not loading reply widget");
} else {
// ukko / livechan page
var rpl = getReplyTo();
rpl.setPrefix(prefix);
// set livechan
rpl.setBoard("overchan.random");
rpl.setBoard("");
rpl.update();
rpl.updateCaptcha();