Skip to content

Commit

Permalink
Revert pinVideo change (#5442)
Browse files Browse the repository at this point in the history
* Revert pinVideo change

* lint
  • Loading branch information
benmcgarry authored Dec 22, 2022
1 parent c56313f commit fc9b176
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions lib/modules/showImages.js
Original file line number Diff line number Diff line change
Expand Up @@ -559,13 +559,6 @@ module.go = () => {
});
}
}

if (module.options.hidePinnedRedditVideos.value) {
// Do not let Reddit move the video by forcing the `pinCondition` to false
document.querySelectorAll('.pinnable-content .thing[data-kind=video]').forEach(ele => {
downcast(ele.closest('.pinnable-content'), HTMLElement).dataset.pinCondition = 'function() { return true; }';
});
}
};

module.afterLoad = () => {
Expand Down

0 comments on commit fc9b176

Please sign in to comment.