Skip to content

Commit 87fbc22

Browse files
authored
Initial commit
1 parent 474a5ff commit 87fbc22

File tree

5 files changed

+43
-0
lines changed

5 files changed

+43
-0
lines changed

icons/logo-192.png

46.4 KB
Loading

icons/logo-48.png

2.9 KB
Loading

icons/logo-96.png

15.2 KB
Loading

manifest.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"author": "crazycat138",
3+
"description": "Removes unrelated 'related answers' from Quora questions.",
4+
"name": "Quora No Related Answers",
5+
"version": "1.5.4",
6+
"icons": {
7+
"48": "icons/logo-48.png",
8+
"96": "icons/logo-96.png",
9+
"192": "icons/logo-192.png"
10+
},
11+
"minimum_chrome_version": "93",
12+
"content_scripts": [
13+
{
14+
"matches": [
15+
"*://www.quora.com/*"
16+
],
17+
"js": [
18+
"src/index.js"
19+
],
20+
"run_at": "document_idle"
21+
}
22+
],
23+
"manifest_version": 3,
24+
"action": {
25+
"default_icon": {
26+
"48": "icons/logo-48.png",
27+
"96": "icons/logo-96.png",
28+
"192": "icons/logo-192.png"
29+
},
30+
"default_title": "Quora No Related Answers"
31+
},
32+
"host_permissions": [
33+
"*://www.quora.com/*"
34+
]
35+
}

src/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
setInterval(() => {
2+
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 => {
3+
if (e.getElementsByClassName("q-inline qu-mr--tiny").length > 0) {
4+
e.remove();
5+
console.log("removed unrelated answer: " + e.getElementsByClassName("puppeteer_test_question_title")[0].innerText);
6+
}
7+
});
8+
}, 300);

0 commit comments

Comments
 (0)