Restrict click event to link
This commit is contained in:
parent
2f9304840d
commit
ab8977fb6e
2
LICENSE
2
LICENSE
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* 4chan X - Version 1.2.6 - 2013-05-17
|
||||
* 4chan X - Version 1.2.6 - 2013-05-18
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||
// ==/UserScript==
|
||||
/*
|
||||
* 4chan X - Version 1.2.6 - 2013-05-17
|
||||
* 4chan X - Version 1.2.6 - 2013-05-18
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -4670,7 +4670,7 @@
|
||||
title: title,
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
$.on(link.firstChild, 'click', function() {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
|
||||
@ -19,7 +19,7 @@
|
||||
// @icon data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAACVBMVEUAAGcAAABmzDNZt9VtAAAAAXRSTlMAQObYZgAAAHFJREFUKFOt0LENACEIBdBv4Qju4wgWanEj3D6OcIVMKaitYHEU/jwTCQj8W75kiVCSBvdQ5/AvfVHBin11BgdRq3ysBgfwBDRrj3MCIA+oAQaku/Q1cNctrAmyDl577tOThYt/Y1RBM4DgOHzM0HFTAyLukH/cmRnqAAAAAElFTkSuQmCC
|
||||
// ==/UserScript==
|
||||
/*
|
||||
* 4chan X - Version 1.2.6 - 2013-05-17
|
||||
* 4chan X - Version 1.2.6 - 2013-05-18
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -4654,7 +4654,7 @@
|
||||
title: title,
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
$.on(link.firstChild, 'click', function() {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// Generated by CoffeeScript
|
||||
/*
|
||||
* 4chan X - Version 1.2.6 - 2013-05-17
|
||||
* 4chan X - Version 1.2.6 - 2013-05-18
|
||||
*
|
||||
* Licensed under the MIT license.
|
||||
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE
|
||||
@ -4656,7 +4656,7 @@
|
||||
title: title,
|
||||
className: "qr-link"
|
||||
});
|
||||
$.on(link, 'click', function() {
|
||||
$.on(link.firstChild, 'click', function() {
|
||||
$.event('CloseMenu');
|
||||
QR.open();
|
||||
QR.nodes.com.focus();
|
||||
|
||||
@ -40,7 +40,7 @@ QR =
|
||||
innerHTML: "<a href=javascript:;>#{title = if g.VIEW is 'thread' then 'Reply to Thread' else 'Start a Thread'}</a>"
|
||||
title: title
|
||||
className: "qr-link"
|
||||
$.on link, 'click', ->
|
||||
$.on link.firstChild, 'click', ->
|
||||
$.event 'CloseMenu'
|
||||
QR.open()
|
||||
QR.nodes.com.focus()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user