File tree 2 files changed +5
-5
lines changed
src/content-script/site-adapters
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -170,9 +170,9 @@ export const config = {
170
170
} ,
171
171
reddit : {
172
172
inputQuery : reddit . inputQuery ,
173
- sidebarContainerQuery : [ '#pdp-right-rail-topics div' ] ,
173
+ sidebarContainerQuery : [ 'aside > div' ] ,
174
174
appendContainerQuery : [ ] ,
175
- resultsContainerQuery : [ '#pdp-right-rail-topics div' ] ,
175
+ resultsContainerQuery : [ 'aside > div' ] ,
176
176
} ,
177
177
quora : {
178
178
inputQuery : quora . inputQuery ,
Original file line number Diff line number Diff line change @@ -3,11 +3,11 @@ import { cropText } from '../../../utils'
3
3
export default {
4
4
inputQuery : async ( ) => {
5
5
try {
6
- const title = document . querySelector ( '.main shreddit- post div:nth-child(4) ' ) . textContent
6
+ const title = document . querySelector ( '[id*=" post-title"] ' ) . textContent
7
7
const description = document . querySelector (
8
- '.main shreddit-post div:nth-child(6) div' ,
8
+ 'shreddit-post > div.text-neutral-content ' ,
9
9
) . textContent
10
- const texts = document . querySelectorAll ( 'shreddit-comment div:nth-child(2) ' )
10
+ const texts = document . querySelectorAll ( 'shreddit-comment div.md ' )
11
11
let answers = ''
12
12
for ( let i = 0 ; i < texts . length ; i ++ ) {
13
13
answers += `answer${ i } :${ texts [ i ] . textContent } |`
You can’t perform that action at this time.
0 commit comments