diff --git a/src/ui/components/SettingsWindowContent.vue b/src/ui/components/SettingsWindowContent.vue index 4f3d3d2..8c0f532 100644 --- a/src/ui/components/SettingsWindowContent.vue +++ b/src/ui/components/SettingsWindowContent.vue @@ -160,14 +160,41 @@ :settings="settings" > + + + + + + + -
+
+

Simple video player picker

+
+

If your video is not aligned correctly, video player was not detected correctly.

+

You need to help by selecting the video player. Hover over boxes below. This will highlight part of the screen.

+

Select the first box that highlights the video player on the page.

+
- -
-
- -
-
-
- -
- Use CSS selector for player
- If defining multiple selectors, separate them with commas. -
-
-
Selector
- -
-
- Custom CSS for site - -
-
- -
-
- - - - - - - - - - - - - - - - -
-
- Status - -
- Symbols:
- Element of invalid dimensions
- Ultrawidify's player detection thinks this should be the player
- Site settings say this should be the player (based on counting parents)
- Site settings say this should be the player (based on query selectors)
- Element that is actually the player -
-
-
Element
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
-
-
-
- {{element.tagName}} {{element.id ? `#`:''}}{{element.id}} @ {{element.width}}x{{element.height}} - -
-
-
- {{cls}} -
-
-
-
-
-
-
-
-
-
- - -
+
+
+
+ + +
+
+
+ This element is currently treated as player element. +
+ +
+
+ <{{element.tagName}}> {{element.id ? `#`:''}}{{element.id}} @ {{element.width}}x{{element.height}} +
+
+ .{{cls}}  +
+
+ + +
+ This element matches query string (advanced settings) +
+
+ This element has been manually selected as player element. +
+
+ Automatic detections thinks this is the player. +
+
+ This element has invalid dimensions +
+
+ +
+
@@ -156,11 +101,9 @@ export default defineComponent({ }, mixins: [], props: [ + 'settings', // not used? 'siteSettings', - 'frame', 'eventBus', - 'site', - 'isPopup' ], created() { this.eventBus.subscribe( diff --git a/src/ui/utils/mixins/WarningsMixin.vue b/src/ui/utils/mixins/WarningsMixin.vue new file mode 100644 index 0000000..2650fac --- /dev/null +++ b/src/ui/utils/mixins/WarningsMixin.vue @@ -0,0 +1,25 @@ +