Remove some DOM transforms for new endpoints

Authored by bearND on Fri, Apr 21, 4:56 AM.

Description

Remove some DOM transforms for new endpoints

This currently only affect the new formatted endpoints. The following
transforms will be removed:

  • rewriting of URLs to start with /wiki/ instead of ./
  • add "external" class for external links
  • add "image" class for images
  • add "app_media" for videos

A good place to see the change of the last two bullet points in
action is section 9 (Video) on the Frankenstein page.[1]

[1] https://en.wikipedia.org/wiki/User:BSitzmann_(WMF)/MCS/Test/Frankenstein#Video

Bug: T147043
Change-Id: I267a6e3bc47ed8d655f3f94dc69d797e91df3920

Details

Committed
bearNDFri, Apr 21, 5:05 AM
Parents
rGMOAec6ea9446d7a: Flatten links inside section titles anchors
Branches
Unknown
Tags
Unknown
References
refs/changes/60/348860/2
ChangeId
I267a6e3bc47ed8d655f3f94dc69d797e91df3920