mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Merge branch 'master' into accent-color-experimental
This commit is contained in:
@@ -45,6 +45,16 @@ function wrapTables() {
|
||||
}
|
||||
}
|
||||
|
||||
// Add the playsinline attribute to any HTML5 videos that don"t have it.
|
||||
// Without this attribute videos may autoplay and take over the whole screen
|
||||
// on an iphone when viewing an article.
|
||||
function inlineVideos() {
|
||||
document.querySelectorAll("video").forEach(element => {
|
||||
element.setAttribute("playsinline", true)
|
||||
element.setAttribute("controls", true)
|
||||
});
|
||||
}
|
||||
|
||||
// Remove some children (currently just spans) from pre elements to work around a strange clipping issue
|
||||
var ElementUnwrapper = {
|
||||
unwrapSelector: "span",
|
||||
@@ -120,6 +130,7 @@ function styleLocalFootnotes() {
|
||||
function processPage() {
|
||||
wrapFrames();
|
||||
wrapTables();
|
||||
inlineVideos();
|
||||
stripStyles();
|
||||
convertImgSrc();
|
||||
flattenPreElements();
|
||||
|
||||
Reference in New Issue
Block a user