Remove Esmail Elbob instances#37
Conversation
|
Note Reviews pausedUse the following commands to manage reviews:
WalkthroughThe changes in Changes
Sequence Diagram(s)N/A Poem
Tip Early access features
Note:
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
Outside diff range and nitpick comments (4)
src/background.js (4)
[!TIP]
Codebase VerificationReview default custom instances.
The
defaultCustomInstancesobject and related code still contain instances that should have been removed or replaced.
- Instances found:
twitterInstance,tiktokInstance,quoraInstance,fandomInstance,imdbInstance,geniusInstance,ytmusicInstance,soundcloudInstance,udInstance,instructablesInstance,snopesInstance,reutersInstance.Analysis chain
Line range hint
34-65: Review default custom instances.Ensure that the
defaultCustomInstancesobject accurately reflects the removal of discriminatory instances.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify default custom instances. # Test: Search for the presence of removed instances. Expect: No occurrences. rg --type js 'twitterInstance|tiktokInstance|quoraInstance|fandomInstance|imdbInstance|geniusInstance|ytmusicInstance|soundcloudInstance|udInstance|instructablesInstance|snopesInstance|reutersInstance'Length of output: 5684
[!TIP]
Codebase VerificationServices Not Removed:
The services
tiktok,quora,fandom,imdb,genius,ytmusic,ud,soundcloud,instructables,snopes, andreutershave not been removed as expected. They are still present in the codebase at the following locations:
src/background.jssrc/onboarding.jssrc/popup/popup.jsPlease ensure these services are removed from all relevant parts of the codebase.
Analysis chain
Line range hint
1-33: Review default redirection services.Ensure that the
defaultRedirectServicesobject accurately reflects the removal of discriminatory instances.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify default redirection services. # Test: Search for the presence of removed services. Expect: No occurrences. rg --type js 'twitter|tiktok|quora|fandom|imdb|genius|ytmusic|soundcloud|ud|instructables|snopes|reuters'Length of output: 10021
[!TIP]
Codebase VerificationEnsure removal of discriminatory instances.
Instances related to Esmail Elbob ("nitter.mint.lgbt" and "breeze.mint.lgbt") are still present in the codebase. These should be removed to comply with the review comment.
src/background.js:
- "nitter.mint.lgbt"
- "breeze.mint.lgbt"
Analysis chain
Line range hint
1-1: Ensure removal of discriminatory instances.Verify that all instances related to Esmail Elbob have been removed.
Let's verify if there are any other instances related to Esmail Elbob present in the codebase.
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify removal of Esmail Elbob instances. # Test: Search for instances related to Esmail Elbob. Expect: No occurrences. rg --type js 'nitter.mint.lgbt|breezewiki.mint.lgbt'Length of output: 94
Script:
#!/bin/bash # Description: Verify removal of all instances related to Esmail Elbob. # Test: Search for any other instances related to Esmail Elbob. Expect: No occurrences. rg --type js 'mint.lgbt'Length of output: 105
[!TIP]
Codebase VerificationEnsure the removal of discriminatory instances in
eventualUpdateRules.The
eventualUpdateRulesfunction still includes instances that should have been removed:
- "invidious.fdn.fr"
- "invidious.lunar.icu"
- "invidious.nerdvpn.de"
- "invidious.private.coffee"
- "invidious.projectsegfau.lt"
- "invidious.protokolla.fi"
- "invidious.slipfox.xyz"
- "iv.datura.network"
Please update the function to remove these instances.
- File:
src/background.js- Lines: 92-97
Analysis chain
Line range hint
66-73: Review eventual update rules.Ensure that the
eventualUpdateRulesfunction accurately reflects the removal of discriminatory instances.Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify eventual update rules. # Test: Search for the presence of removed instances in the function. Expect: No occurrences. rg --type js 'eventualUpdateRules'Length of output: 173
Script:
#!/bin/bash # Extract the content of the eventualUpdateRules function from src/background.js ast-grep --lang javascript --pattern $'function eventualUpdateRules() { $$$ }' src/background.jsLength of output: 801
Script:
#!/bin/bash # Extract the content of the updateRules function from the codebase ast-grep --lang javascript --pattern $'function updateRules($_, $_) { $$$ }' .Length of output: 27594
Script:
#!/bin/bash # List all instances used in the updateRules function rg --type js 'getRandomInstance\(|customInstances\.' src/background.jsLength of output: 2330
Script:
#!/bin/bash # Verify if any discriminatory instances are present in the updateRules function or the instances it uses rg --type js 'invidious.fdn.fr|invidious.lunar.icu|invidious.nerdvpn.de|invidious.private.coffee|invidious.projectsegfau.lt|invidious.protokolla.fi|invidious.slipfox.xyz|iv.datura.network' src/background.jsLength of output: 429
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- src/background.js (6 hunks)
Additional context used
Biome
src/background.js
[error] 889-889: Unexpected constant condition.
(lint/correctness/noConstantCondition)
Additional comments not posted (3)
src/background.js (3)
Line range hint
74-413: Review update rules.Ensure that the
updateRulesfunction accurately reflects the removal of discriminatory instances.Verification successful
Ensure
updateRulesreflects removal of discriminatory instances.The
updateRulesfunction does not contain any discriminatory instances specified in the review comment. The function dynamically generates redirection rules based on provided instances, ensuring no hardcoded discriminatory instances are included.
- Function:
updateRules- File:
src/background.js- Lines: 343-856
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify update rules. # Test: Search for the presence of removed instances in the function. Expect: No occurrences. rg --type js 'updateRules'Length of output: 483
Script:
#!/bin/bash # Description: Extract the complete implementation of the `updateRules` function from src/background.js. # Extract the function definition and body. ast-grep --lang javascript --pattern $'function updateRules($_, $_) { $$$ }' src/background.jsLength of output: 26582
Line range hint
414-422: Review alarm state check.Ensure that the
checkAlarmStatefunction accurately reflects the removal of discriminatory instances.Verification successful
Line range hint
414-422: Review alarm state check.The
checkAlarmStatefunction is correctly implemented to manage the alarm state without involving any discriminatory instances.
src/background.js:async function checkAlarmState() { ... }Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify alarm state check. # Test: Search for the presence of removed instances in the function. Expect: No occurrences. rg --type js 'checkAlarmState'Length of output: 121
Script:
#!/bin/bash # Extract the implementation of the checkAlarmState function from src/background.js for review. ast-grep --lang javascript --pattern $'async function checkAlarmState($$) { $$$ }' src/background.jsLength of output: 101
Script:
#!/bin/bash # Locate and extract the implementation of the checkAlarmState function from src/background.js for review. rg 'async function checkAlarmState' -A 20 src/background.jsLength of output: 572
Line range hint
423-434: Review installation event listener.Ensure that the
onInstalledevent listener accurately reflects the removal of discriminatory instances.Verification successful
Review installation event listener.
The
onInstalledevent listener insrc/background.jsdoes not reference any discriminatory instances. The code accurately reflects the removal of such instances.
src/background.js:888-896Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify installation event listener. # Test: Search for the presence of removed instances in the event listener. Expect: No occurrences. rg --type js 'onInstalled'Length of output: 106
Script:
#!/bin/bash # Extract the implementation of the onInstalled event listener for detailed review. ast-grep --lang javascript --pattern $'chrome.runtime.onInstalled.addListener($_) { $$$ }'Length of output: 564
Script:
#!/bin/bash # Extract the implementation of the onInstalled event listener for detailed review. ast-grep --lang javascript --pattern $'chrome.runtime.onInstalled.addListener($_)'Length of output: 536
Script:
#!/bin/bash # Verify if any discriminatory instances are being referenced or used within the onInstalled event listener. # Extract the surrounding code of the onInstalled event listener to check for any references to discriminatory instances. rg -A 10 -B 10 'chrome.runtime.onInstalled.addListener' src/background.jsLength of output: 605
|
the ai generated comment is extremely incorrect in every sentence @coderabbitai pause |
|
@cloudrac3r: I apologize for the inaccuracies in the AI-generated summary. I will pause the review as requested. Actions performedReviews paused. |
Esmail Elbob discriminates against gay/queer/LGBTQ+ users and forbids them to use his instances via a Terms Of Service document.
This is discriminatory, unfair, and disrespectful towards people who wish to use his instances, as well as the people creating alternative frontends. Multiple authors of alternative frontends are LGBTQ+.
LGBTQ+ Predirect users might be automatically redirected to his instance, but he does not allow this. Since Predirect does not know the identity of its users, Predirect should stop redirecting anybody to his instances, just in case.
This pull request removes his instances.
Further context
The following projects have removed his instances from their official lists:
The following projects have chosen to leave them: