Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
solar138 authored Jan 14, 2024
1 parent 474a5ff commit 87fbc22
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
Binary file added icons/logo-192.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 icons/logo-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 icons/logo-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 35 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"author": "crazycat138",
"description": "Removes unrelated 'related answers' from Quora questions.",
"name": "Quora No Related Answers",
"version": "1.5.4",
"icons": {
"48": "icons/logo-48.png",
"96": "icons/logo-96.png",
"192": "icons/logo-192.png"
},
"minimum_chrome_version": "93",
"content_scripts": [
{
"matches": [
"*://www.quora.com/*"
],
"js": [
"src/index.js"
],
"run_at": "document_idle"
}
],
"manifest_version": 3,
"action": {
"default_icon": {
"48": "icons/logo-48.png",
"96": "icons/logo-96.png",
"192": "icons/logo-192.png"
},
"default_title": "Quora No Related Answers"
},
"host_permissions": [
"*://www.quora.com/*"
]
}
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
setInterval(() => {
Array.from(document.getElementsByClassName("q-box qu-borderAll qu-borderRadius--small qu-borderColor--raised qu-boxShadow--small qu-mb--small qu-bg--raised")).forEach(e => {
if (e.getElementsByClassName("q-inline qu-mr--tiny").length > 0) {
e.remove();
console.log("removed unrelated answer: " + e.getElementsByClassName("puppeteer_test_question_title")[0].innerText);
}
});
}, 300);

0 comments on commit 87fbc22

Please sign in to comment.