File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 500500 if ( regexToMatch ) {
501501 hookAjaxObject [ regexToMatch ] = functionToExecute ;
502502 }
503- sox . helpers . runAjaxHooks ( ) ;
503+
504+ // Only override the XMLHttpRequest.prototype.open function once (after adding the first regex-function mapping)
505+ if ( Object . keys ( hookAjaxObject ) . length <= 1 ) {
506+ sox . helpers . runAjaxHooks ( ) ;
507+ }
504508 } ,
505509 } ;
506510
Original file line number Diff line number Diff line change 33// @namespace https://github.com/soscripted/sox
44// @homepage https://github.com/soscripted/sox
55// @homepageURL https://github.com/soscripted/sox
6- // @version 2.8.5 DEV
6+ // @version 2.8.6 DEV
77// @description Extra optional features for Stack Overflow and Stack Exchange sites
88// @contributor ᴉʞuǝ (https://stackoverflow.com/users/1454538/, https://github.com/mezmi)
99// @contributor ᔕᖺᘎᕊ (https://stackexchange.com/users/4337810/, https://github.com/shu8)
You can’t perform that action at this time.
0 commit comments