Add href attributes to <a> elements to play nicer with Pentadactyl.
This commit is contained in:
parent
063d88d4a4
commit
4d1eb4db32
@ -686,7 +686,8 @@
|
|||||||
span = _ref[_i];
|
span = _ref[_i];
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: "+ " + span.textContent,
|
textContent: "+ " + span.textContent,
|
||||||
className: 'omittedposts'
|
className: 'omittedposts',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', expandThread.cb.toggle);
|
$.on(a, 'click', expandThread.cb.toggle);
|
||||||
_results.push($.replace(span, a));
|
_results.push($.replace(span, a));
|
||||||
@ -793,7 +794,8 @@
|
|||||||
if (!(dd = $('.doubledash', root))) return;
|
if (!(dd = $('.doubledash', root))) return;
|
||||||
dd.className = 'replyhider';
|
dd.className = 'replyhider';
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: '[ - ]'
|
textContent: '[ - ]',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', replyHiding.cb.hide);
|
$.on(a, 'click', replyHiding.cb.hide);
|
||||||
$.replace(dd.firstChild, a);
|
$.replace(dd.firstChild, a);
|
||||||
@ -836,7 +838,8 @@
|
|||||||
name = $('.commentpostername', reply).textContent;
|
name = $('.commentpostername', reply).textContent;
|
||||||
trip = ((_ref = $('.postertrip', reply)) != null ? _ref.textContent : void 0) || '';
|
trip = ((_ref = $('.postertrip', reply)) != null ? _ref.textContent : void 0) || '';
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: "[ + ] " + name + " " + trip
|
textContent: "[ + ] " + name + " " + trip,
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', replyHiding.cb.show);
|
$.on(a, 'click', replyHiding.cb.show);
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
@ -1129,10 +1132,12 @@
|
|||||||
id: 'navlinks'
|
id: 'navlinks'
|
||||||
});
|
});
|
||||||
prev = $.el('a', {
|
prev = $.el('a', {
|
||||||
textContent: '▲'
|
textContent: '▲',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
next = $.el('a', {
|
next = $.el('a', {
|
||||||
textContent: '▼'
|
textContent: '▼',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(prev, 'click', nav.prev);
|
$.on(prev, 'click', nav.prev);
|
||||||
$.on(next, 'click', nav.next);
|
$.on(next, 'click', nav.next);
|
||||||
@ -1202,13 +1207,15 @@
|
|||||||
var a, home;
|
var a, home;
|
||||||
home = $('#navtopr a');
|
home = $('#navtopr a');
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: '4chan X'
|
textContent: '4chan X',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', options.dialog);
|
$.on(a, 'click', options.dialog);
|
||||||
$.replace(home, a);
|
$.replace(home, a);
|
||||||
home = $('#navbotr a');
|
home = $('#navbotr a');
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: '4chan X'
|
textContent: '4chan X',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', options.dialog);
|
$.on(a, 'click', options.dialog);
|
||||||
return $.replace(home, a);
|
return $.replace(home, a);
|
||||||
@ -1764,7 +1771,8 @@
|
|||||||
thread = _ref[_i];
|
thread = _ref[_i];
|
||||||
op = thread.firstChild;
|
op = thread.firstChild;
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: '[ - ]'
|
textContent: '[ - ]',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', threadHiding.cb.hide);
|
$.on(a, 'click', threadHiding.cb.hide);
|
||||||
$.prepend(op, a);
|
$.prepend(op, a);
|
||||||
@ -1816,7 +1824,8 @@
|
|||||||
name = $('.postername', thread).textContent;
|
name = $('.postername', thread).textContent;
|
||||||
trip = ((_ref = $('.postername + .postertrip', thread)) != null ? _ref.textContent : void 0) || '';
|
trip = ((_ref = $('.postername + .postertrip', thread)) != null ? _ref.textContent : void 0) || '';
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
textContent: "[ + ] " + name + trip + " (" + text + ")"
|
textContent: "[ + ] " + name + trip + " (" + text + ")",
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(a, 'click', threadHiding.cb.show);
|
$.on(a, 'click', threadHiding.cb.show);
|
||||||
div = $.el('div', {
|
div = $.el('div', {
|
||||||
@ -2027,7 +2036,8 @@
|
|||||||
props = _ref2[id];
|
props = _ref2[id];
|
||||||
div = $.el('div');
|
div = $.el('div');
|
||||||
x = $.el('a', {
|
x = $.el('a', {
|
||||||
textContent: 'X'
|
textContent: 'X',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.on(x, 'click', watcher.cb.x);
|
$.on(x, 'click', watcher.cb.x);
|
||||||
link = $.el('a', props);
|
link = $.el('a', props);
|
||||||
@ -2530,7 +2540,8 @@
|
|||||||
span = $('span[id]', root);
|
span = $('span[id]', root);
|
||||||
a = $.el('a', {
|
a = $.el('a', {
|
||||||
className: 'reportbutton',
|
className: 'reportbutton',
|
||||||
innerHTML: '[ ! ]'
|
innerHTML: '[ ! ]',
|
||||||
|
href: 'javascript:;'
|
||||||
});
|
});
|
||||||
$.after(span, a);
|
$.after(span, a);
|
||||||
$.after(span, $.tn(' '));
|
$.after(span, $.tn(' '));
|
||||||
|
|||||||
@ -488,6 +488,7 @@ expandThread =
|
|||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: "+ #{span.textContent}"
|
textContent: "+ #{span.textContent}"
|
||||||
className: 'omittedposts'
|
className: 'omittedposts'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', expandThread.cb.toggle
|
$.on a, 'click', expandThread.cb.toggle
|
||||||
$.replace span, a
|
$.replace span, a
|
||||||
|
|
||||||
@ -563,6 +564,7 @@ replyHiding =
|
|||||||
dd.className = 'replyhider'
|
dd.className = 'replyhider'
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: '[ - ]'
|
textContent: '[ - ]'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', replyHiding.cb.hide
|
$.on a, 'click', replyHiding.cb.hide
|
||||||
$.replace dd.firstChild, a
|
$.replace dd.firstChild, a
|
||||||
|
|
||||||
@ -602,6 +604,7 @@ replyHiding =
|
|||||||
trip = $('.postertrip', reply)?.textContent or ''
|
trip = $('.postertrip', reply)?.textContent or ''
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: "[ + ] #{name} #{trip}"
|
textContent: "[ + ] #{name} #{trip}"
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', replyHiding.cb.show
|
$.on a, 'click', replyHiding.cb.show
|
||||||
|
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
@ -795,8 +798,10 @@ nav =
|
|||||||
id: 'navlinks'
|
id: 'navlinks'
|
||||||
prev = $.el 'a',
|
prev = $.el 'a',
|
||||||
textContent: '▲'
|
textContent: '▲'
|
||||||
|
href: 'javascript:;'
|
||||||
next = $.el 'a',
|
next = $.el 'a',
|
||||||
textContent: '▼'
|
textContent: '▼'
|
||||||
|
href: 'javascript:;'
|
||||||
|
|
||||||
$.on prev, 'click', nav.prev
|
$.on prev, 'click', nav.prev
|
||||||
$.on next, 'click', nav.next
|
$.on next, 'click', nav.next
|
||||||
@ -863,11 +868,13 @@ options =
|
|||||||
home = $ '#navtopr a'
|
home = $ '#navtopr a'
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: '4chan X'
|
textContent: '4chan X'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', options.dialog
|
$.on a, 'click', options.dialog
|
||||||
$.replace home, a
|
$.replace home, a
|
||||||
home = $ '#navbotr a'
|
home = $ '#navbotr a'
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: '4chan X'
|
textContent: '4chan X'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', options.dialog
|
$.on a, 'click', options.dialog
|
||||||
$.replace home, a
|
$.replace home, a
|
||||||
|
|
||||||
@ -1363,6 +1370,7 @@ threadHiding =
|
|||||||
op = thread.firstChild
|
op = thread.firstChild
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: '[ - ]'
|
textContent: '[ - ]'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', threadHiding.cb.hide
|
$.on a, 'click', threadHiding.cb.hide
|
||||||
$.prepend op, a
|
$.prepend op, a
|
||||||
|
|
||||||
@ -1405,6 +1413,7 @@ threadHiding =
|
|||||||
|
|
||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
textContent: "[ + ] #{name}#{trip} (#{text})"
|
textContent: "[ + ] #{name}#{trip} (#{text})"
|
||||||
|
href: 'javascript:;'
|
||||||
$.on a, 'click', threadHiding.cb.show
|
$.on a, 'click', threadHiding.cb.show
|
||||||
|
|
||||||
div = $.el 'div',
|
div = $.el 'div',
|
||||||
@ -1586,6 +1595,7 @@ watcher =
|
|||||||
div = $.el 'div'
|
div = $.el 'div'
|
||||||
x = $.el 'a',
|
x = $.el 'a',
|
||||||
textContent: 'X'
|
textContent: 'X'
|
||||||
|
href: 'javascript:;'
|
||||||
$.on x, 'click', watcher.cb.x
|
$.on x, 'click', watcher.cb.x
|
||||||
link = $.el 'a', props
|
link = $.el 'a', props
|
||||||
|
|
||||||
@ -1931,6 +1941,7 @@ reportButton =
|
|||||||
a = $.el 'a',
|
a = $.el 'a',
|
||||||
className: 'reportbutton'
|
className: 'reportbutton'
|
||||||
innerHTML: '[ ! ]'
|
innerHTML: '[ ! ]'
|
||||||
|
href: 'javascript:;'
|
||||||
$.after span, a
|
$.after span, a
|
||||||
$.after span, $.tn(' ')
|
$.after span, $.tn(' ')
|
||||||
$.on a, 'click', reportButton.report
|
$.on a, 'click', reportButton.report
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user