2019-07-05 23:45:29 +02:00
|
|
|
// How to use:
|
|
|
|
// version: {ExtensionConf object, but only properties that get overwritten}
|
|
|
|
|
2019-09-03 00:28:35 +02:00
|
|
|
const ExtensionConfPatch = [
|
|
|
|
{
|
|
|
|
forVersion: '4.2.0',
|
2019-07-05 23:45:29 +02:00
|
|
|
sites: {
|
|
|
|
"old.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
useRelativeAncestor: false,
|
2019-08-31 22:45:56 +02:00
|
|
|
querySelectors: '.reddit-video-player-root, .media-preview-content'
|
2019-07-05 23:45:29 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
css: '',
|
|
|
|
},
|
|
|
|
"www.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
useRelativeAncestor: false,
|
2019-08-31 22:45:56 +02:00
|
|
|
querySelectors: '.reddit-video-player-root, .media-preview-content'
|
2019-07-05 23:45:29 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
css: '',
|
|
|
|
},
|
|
|
|
"www.youtube.com" : {
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
querySelectors: "#movie_player, #player",
|
|
|
|
additionalCss: "",
|
|
|
|
useRelativeAncestor: false,
|
|
|
|
playerNodeCss: "",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
2019-09-03 00:28:35 +02:00
|
|
|
}, {
|
|
|
|
forVersion: '4.2.3.1',
|
|
|
|
sites: {
|
|
|
|
"old.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
useRelativeAncestor: false,
|
|
|
|
querySelectors: '.media-preview-content, .reddit-video-player-root'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
css: '',
|
|
|
|
},
|
|
|
|
"www.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
useRelativeAncestor: false,
|
|
|
|
querySelectors: '.media-preview-content, .reddit-video-player-root'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
css: '',
|
|
|
|
},
|
|
|
|
"www.youtube.com" : {
|
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: true,
|
|
|
|
querySelectors: "#movie_player, #player",
|
|
|
|
additionalCss: "",
|
|
|
|
useRelativeAncestor: false,
|
|
|
|
playerNodeCss: "",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}, {
|
|
|
|
forVersion: '4.3.0',
|
|
|
|
sites: {
|
|
|
|
"old.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
2019-09-22 02:07:04 +02:00
|
|
|
manual: false,
|
2019-09-03 00:28:35 +02:00
|
|
|
useRelativeAncestor: false,
|
2019-09-22 02:07:04 +02:00
|
|
|
querySelectors: '.reddit-video-player-root, .media-preview-content'
|
2019-09-03 00:28:35 +02:00
|
|
|
}
|
|
|
|
},
|
2019-09-22 02:07:04 +02:00
|
|
|
css: 'video {\n width: 100% !important;\n height: 100% !important;\n}',
|
2019-09-03 00:28:35 +02:00
|
|
|
},
|
|
|
|
"www.reddit.com" : {
|
|
|
|
type: 'testing',
|
|
|
|
DOM: {
|
|
|
|
player: {
|
2019-09-22 02:07:04 +02:00
|
|
|
manual: false,
|
2019-09-03 00:28:35 +02:00
|
|
|
useRelativeAncestor: false,
|
2019-09-22 02:07:04 +02:00
|
|
|
querySelectors: '.reddit-video-player-root, .media-preview-content'
|
2019-09-03 00:28:35 +02:00
|
|
|
}
|
|
|
|
},
|
2019-09-22 02:07:04 +02:00
|
|
|
css: 'video {\n width: 100% !important;\n height: 100% !important;\n}',
|
2019-09-03 00:28:35 +02:00
|
|
|
},
|
|
|
|
}
|
2019-10-20 14:09:19 +02:00
|
|
|
}, {
|
2019-10-20 14:13:58 +02:00
|
|
|
forVersion: '4.3.1.1',
|
2019-10-20 14:09:19 +02:00
|
|
|
sites: {
|
2019-10-20 21:11:17 +02:00
|
|
|
'www.twitch.tv': {
|
2019-10-20 14:09:19 +02:00
|
|
|
DOM: {
|
|
|
|
player: {
|
|
|
|
manual: false,
|
|
|
|
querySelectors: "",
|
|
|
|
additionalCss: "",
|
|
|
|
useRelativeAncestor: false,
|
|
|
|
playerNodeCss: ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2019-09-03 00:28:35 +02:00
|
|
|
}
|
|
|
|
];
|
2019-07-05 23:45:29 +02:00
|
|
|
|
|
|
|
export default ExtensionConfPatch;
|