Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jackskelt committed Jun 7, 2024
0 parents commit d304f73
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 0 deletions.
9 changes: 9 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
The MIT License (MIT)

Copyright (c) 2024 JackSkelt

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Brainly Bypass

Uma extensão de navegador que remove o limite de visualização de respostas do [Brainly](https://brainly.com.br/) e remove anúncios visuais
23 changes: 23 additions & 0 deletions brainly-bypass.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Disable telemetry that show paywall
localStorage.removeItem("social-qa/telemetry");

// Disable register & offer modal
localStorage.setItem('offer-modal/timestamp', 2147483647000);
localStorage.setItem('registration-toplayer/expires', 2147483647000);

// List of selectors for ads (featured & brainly)
const adSelector = [
"[class^=AsideFixedAd]",
"[data-testid^=ad_]",
"[data-testid=brainly_ads_placeholder]",
"[data-testid=brainly_plus_box_search_unlogged]"
];

function removeAdElements() {
// Remove all featured ads
for(let ad of adSelector) {
document.querySelectorAll(ad).forEach(v => v.remove());
}
}

setInterval(() => { removeAdElements(); }, 2000);
Binary file added images/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"manifest_version": 2,
"name": "Brainly Bypass by Jack",
"version": "1.0.0",
"author": "JackSkelt",
"description": "Remova os limites de visualização de resposta no Brainly",
"icons": {
"16": "images/icon-16.png",
"32": "images/icon-32.png",
"48": "images/icon-48.png",
"128": "images/icon-128.png"
},
"content_scripts": [
{
"js": [
"brainly-bypass.js"
],
"matches": [
"https://*.brainly.com.br/*",
"https://*.brainly.com/*",
"https://*.brainly.in/*"
]
}
]
}

0 comments on commit d304f73

Please sign in to comment.