Commit 7f2e1f8c authored by Aran Dunkley's avatar Aran Dunkley

debug highlight node by title

parent 8132bbbd
......@@ -21,8 +21,8 @@
var local = this.ext.mediawiki;
if(typeof(title) === 'undefined') title = mw.config.get('wgTitle');
this.visit(function(node) {
var title = $('a', (node.title)).attr('title');
console.log(title);
var x = $('a', (node.title)).attr('title');
console.log(x);
if($(node.title) == title) {
node.makeVisible({ noAnimation: true, noEvents: true, scrollIntoView: false });
node.setActive({ noEvents: true });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment