Merge branch 'pr-3925' into dev
This commit is contained in:
commit
115c456868
3 changed files with 5 additions and 5 deletions
|
|
@ -27,7 +27,7 @@ export default definePlugin({
|
|||
|
||||
patches: [
|
||||
{
|
||||
find: '"calc(100% + 1px)":"100%"',
|
||||
find: ".RESPONSIVE?",
|
||||
replacement: {
|
||||
match: /(?="data-role":"img","data-safe-src":)(?<=href:(\i).{0,30})/,
|
||||
replace: "title:$self.getTitle($1),"
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ export default definePlugin({
|
|||
settings,
|
||||
patches: [
|
||||
{
|
||||
find: ".removeMosaicItemHoverButton),",
|
||||
find: '["VIDEO","CLIP","AUDIO"]',
|
||||
replacement: {
|
||||
match: /(\.nonMediaMosaicItem\]:.{0,40}children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
match: /("div",{className:.+?children:)(\i.slice\(\i\))(?<=showDownload:(\i).+?isVisualMediaType:(\i).+?)/,
|
||||
replace: (_, rest, origChildren, showDownload, isVisualMediaType) => `${rest}[${showDownload}&&${isVisualMediaType}&&$self.PictureInPictureButton(),...${origChildren}]`
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,9 +28,9 @@ export default definePlugin({
|
|||
|
||||
// Add data-author-id and data-is-self to all messages
|
||||
{
|
||||
find: ".messageListItem",
|
||||
find: ".referencedUsernameProfile,referencedAvatarProfile:",
|
||||
replacement: {
|
||||
match: /\.messageListItem(?=,"aria)/,
|
||||
match: /\.\i(?=,"aria-setsize":-1,children:.+?#{intl::MESSAGE_A11Y_ROLE_DESCRIPTION})/,
|
||||
replace: "$&,...$self.getMessageProps(arguments[0])"
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue