-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect badge spam and more results not working. #54
base: master
Are you sure you want to change the base?
Redirect badge spam and more results not working. #54
Conversation
ManagarmrWhisperer
commented
Jan 13, 2024
•
edited
Loading
edited
- Verify functionality
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split into two commits:
fix: badge spam for every replaced span in DDG
fix: DDG more results not working
Left change requests as well..
@@ -171,15 +171,15 @@ const rewrite = { | |||
|
|||
|
|||
run( wiki, linkElement ) { | |||
if ( linkElement !== null && !this.isLocked( linkElement ) ) { | |||
if ( linkElement !== null ) { | |||
// Find result container | |||
const element = linkElement.closest( 'article' ); | |||
|
|||
const isTopLevel = a => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we're here, have another commit address this being a closure that's later being passed 'as' a bool. There's no reason for this to be a closure.
f8e2c45
to
7815c45
Compare
7815c45
to
9e56525
Compare
Cherry-picked the redirect badge fix into master (04dd427). I'll need to take a look later at the more results patch. |