re-enable dynamic reply
This commit is contained in:
parent
8c2ddda51a
commit
11b5ca6a1b
@ -339,7 +339,7 @@ function inject_hover(prefix, el, parent) {
|
|||||||
|
|
||||||
// inject post hover for all backlinks in an element
|
// inject post hover for all backlinks in an element
|
||||||
function inject_hover_for_element(elem) {
|
function inject_hover_for_element(elem) {
|
||||||
var elems = elem.getElementsByClassName("backlink");
|
var elems = elem.getElementsByClassName("postno");
|
||||||
var ls = [];
|
var ls = [];
|
||||||
var l = elems.length;
|
var l = elems.length;
|
||||||
for ( var idx = 0 ; idx < l ; idx ++ ) {
|
for ( var idx = 0 ; idx < l ; idx ++ ) {
|
||||||
@ -352,19 +352,11 @@ function inject_hover_for_element(elem) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function init(prefix) {
|
function init(prefix) {
|
||||||
// because no one cares about this feature :|
|
// inject posthover ...
|
||||||
return;
|
inject_hover_for_element(document);
|
||||||
// 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();
|
var rpl = getReplyTo();
|
||||||
rpl.setPrefix(prefix);
|
rpl.setPrefix(prefix);
|
||||||
// set livechan
|
rpl.setBoard("");
|
||||||
rpl.setBoard("overchan.random");
|
|
||||||
rpl.update();
|
rpl.update();
|
||||||
rpl.updateCaptcha();
|
rpl.updateCaptcha();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user