@@ -2,10 +2,10 @@ import { onBrowse } from "./../util.js";
2
2
3
3
/**
4
4
* Ensure that "q=" is the last parameter.
5
- *
5
+ *
6
6
* Makes search more usable when
7
7
* using CTRL+L hotkey.
8
- *
8
+ *
9
9
* Especially a problem with "Visually similar images" link
10
10
*/
11
11
onBrowse ( ( ) => {
@@ -28,17 +28,16 @@ onBrowse(() => {
28
28
}
29
29
} ) ;
30
30
31
-
32
31
/**
33
32
* Prevent google from mangling URLs
34
33
*
35
34
* @see https://gist.github.com/chris-kwl/6172eb00971ab81bf99a213682b42e21
36
35
*/
37
36
const disableOnmousedown = function ( node ) {
38
- const as = node . getElementsByTagName ( 'a' ) ;
37
+ const as = node . getElementsByTagName ( "a" ) ;
39
38
for ( let a = as [ 0 ] , i = 1 ; a ; i ++ ) {
40
- a . removeAttribute ( ' data-jsarwt' ) ;
41
- a = as [ i ] ;
39
+ a . removeAttribute ( " data-jsarwt" ) ;
40
+ a = as [ i ] ;
42
41
}
43
42
} ;
44
43
@@ -49,5 +48,9 @@ const disableOnmousedownOfInsertedNode = function (evt) {
49
48
disableOnmousedown ( node ) ;
50
49
} ;
51
50
52
- document . addEventListener ( 'load' , disableOnmousedown ( document . body ) , false ) ;
53
- document . body . addEventListener ( 'AutoPagerize_DOMNodeInserted' , disableOnmousedownOfInsertedNode , false ) ;
51
+ document . addEventListener ( "load" , disableOnmousedown ( document . body ) , false ) ;
52
+ document . body . addEventListener (
53
+ "AutoPagerize_DOMNodeInserted" ,
54
+ disableOnmousedownOfInsertedNode ,
55
+ false ,
56
+ ) ;
0 commit comments