File tree Expand file tree Collapse file tree 5 files changed +43
-0
lines changed Expand file tree Collapse file tree 5 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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 ) ;
You can’t perform that action at this time.
0 commit comments