Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Updates selectors for theguardian.com #16

Conversation

jonathansampson
Copy link
Collaborator

It appears The Guardian changed their page-structure in a major way, invalidating (nearly?) all of our selectors.

image

@jonathansampson jonathansampson changed the title Updates selectors to match changes to site Updates selectors for theguardian.com Aug 9, 2020
@bsclifton bsclifton requested a review from AndriusA August 10, 2020 05:38
@AndriusA
Copy link
Contributor

the existing selectors seem to work for me (VPN is acting up so can't test from US right now, possibly markup changed there?)

But the old script was injected to translate video preview into images, e.g. in https://www.theguardian.com/world/2020/aug/10/hong-kong-media-tycoon-jimmy-lai-arrested-over-alleged-foreign-collusion

Also the new selectors miss figure captions in many cases, including https://www.theguardian.com/sport/2020/aug/09/f1-max-verstappen-70th-anniversary-grand-prix-lewis-hamilton

@AndriusA
Copy link
Contributor

created #17 partially merging the two, though not 100% sure about applying original styling to blockquotes, generally leaving content styling decisions to @karenkliu

@karenkliu
Copy link

@AndriusA Let's do something like this for block quotes -
Screen Shot 2020-08-10 at 4 11 13 PM

Keep the same font size and color but indent with a block quote indicator. Figma: https://www.figma.com/file/YHMNRL2XpZDOUe6n1Dw6K1/Desktop-Speedreader?node-id=48%3A10178

@jonathansampson
Copy link
Collaborator Author

@AndriusA @karenkliu Yeah, the blockquotes and all should be defined/styled in a general stylesheet, IMHO. We could drop those from this commit, and work on them there instead.

@jonathansampson
Copy link
Collaborator Author

@AndriusA If your selectors are still working, it could be that we're getting A/B tested or something by The Guardian, and we're seeing two different sites. I found that your selector list was far more concise, but none of them appeared to match the contents of the pages served to me.

@jonathansampson
Copy link
Collaborator Author

Closing in favor of #17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants