@@ -2,10 +2,10 @@ import { onBrowse } from "./../util.js";
22
33/**
44 * Ensure that "q=" is the last parameter.
5- *
5+ *
66 * Makes search more usable when
77 * using CTRL+L hotkey.
8- *
8+ *
99 * Especially a problem with "Visually similar images" link
1010 */
1111onBrowse ( ( ) => {
@@ -28,17 +28,16 @@ onBrowse(() => {
2828 }
2929} ) ;
3030
31-
3231/**
3332 * Prevent google from mangling URLs
3433 *
3534 * @see https://gist.github.com/chris-kwl/6172eb00971ab81bf99a213682b42e21
3635 */
3736const disableOnmousedown = function ( node ) {
38- const as = node . getElementsByTagName ( 'a' ) ;
37+ const as = node . getElementsByTagName ( "a" ) ;
3938 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 ] ;
4241 }
4342} ;
4443
@@ -49,5 +48,9 @@ const disableOnmousedownOfInsertedNode = function (evt) {
4948 disableOnmousedown ( node ) ;
5049} ;
5150
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