Add Chaturbate thumbnail controls and chat hiding
This commit is contained in:
@@ -196,6 +196,9 @@ assert.match(
|
||||
/\.FollowedDropdown__room-image[\s\S]*width:\s*100%\s*!important[\s\S]*height:\s*var\(--tm-thumb-follow-thumb-height\)\s*!important/,
|
||||
"follow dropdown images should follow fixed card width and use detected height",
|
||||
);
|
||||
assert.doesNotMatch(capturedCss, /translateX\(/, "follow dropdown should not use a fixed horizontal offset");
|
||||
assert.match(source, /adjustFollowDropdownPosition/, "script should adjust follow dropdown position only when it overflows");
|
||||
assert.match(source, /viewportPadding - rect\.left/, "follow dropdown adjustment should be based on left viewport overflow");
|
||||
assert.match(
|
||||
capturedCss,
|
||||
/react-tooltip[\s\S]*width:\s*var\(--tm-thumb-tooltip-width\)\s*!important[\s\S]*height:\s*var\(--tm-thumb-tooltip-height\)\s*!important/,
|
||||
@@ -209,14 +212,20 @@ assert.match(
|
||||
assert.doesNotMatch(source, /withOwnStyleDisabled/, "script should not disable its own style while measuring");
|
||||
assert.match(source, /detectAndApplySizes/, "script should detect original sizes before applying scaled variables");
|
||||
assert.match(source, /moduleReady/, "script should lock each module after detecting its original size");
|
||||
assert.match(source, /CARD_HEIGHT_SCALE/, "script should use a separate scale for card heights");
|
||||
assert.match(source, /setCardHeightVar/, "script should apply card height scaling separately from thumbnail scaling");
|
||||
assert.match(source, /DEFAULT_RESPONSIVE_SCALE/, "script should expose a default responsive scale");
|
||||
assert.match(source, /DEFAULT_FIXED_SCALE/, "script should expose a default fixed scale");
|
||||
assert.match(source, /tmThumbScaleSetScales/, "script should expose a debug API for changing both scales");
|
||||
assert.match(capturedCss, /#tm-thumb-scale-controls[\s\S]*position:\s*fixed\s*!important/, "script should render a fixed page control panel");
|
||||
assert.match(capturedCss, /data-tm-thumb-scale-auto-hide-room-chat="1"[\s\S]*data-tm-thumb-room-chat-overlay="1"[\s\S]*display:\s*none\s*!important/, "script should hide marked room chat overlays when enabled");
|
||||
assert.match(source, /hideRoomChat/, "script should persist the room chat auto-hide setting");
|
||||
assert.match(source, /applyRoomChatAutoHide/, "script should apply automatic room chat hiding");
|
||||
assert.match(source, /setDiscoverStackHeightVars/, "discover carousel stack heights should be derived from scaled card rows");
|
||||
assert.match(source, /setCardHeightFromThumbVar\("--tm-thumb-discover-card-height"/, "discover card height should scale the thumbnail area and keep metadata height");
|
||||
assert.match(source, /stackHeight == null\) return true/, "discover should not require every carousel row type to exist before enabling");
|
||||
assert.match(source, /TAG_TRANSLATIONS/, "script should include a centralized tag translation table");
|
||||
assert.match(source, /translateTagsPage/, "script should translate the Chaturbate tags page");
|
||||
assert.doesNotMatch(source, /localStorage\.setItem/, "script should not write detected sizes to localStorage");
|
||||
assert.doesNotMatch(source, /localStorage\.setItem\([^,]*LEGACY_CACHE_PREFIX/, "script should not write detected sizes to localStorage");
|
||||
assert.match(source, /SETTINGS_KEY/, "script may persist user-adjustable scale settings");
|
||||
assert.match(source, /LEGACY_CACHE_PREFIX/, "script should only keep legacy cache cleanup support");
|
||||
assert.match(source, /scheduleMeasure\("after-800ms"\)/, "script should delay the first page measurement until original layout can render");
|
||||
assert.doesNotMatch(
|
||||
|
||||
Reference in New Issue
Block a user