Skip to content

Commit 1fad9e8

Browse files
authored
Update brzmp0a9.user.js
1 parent 0d06fb1 commit 1fad9e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

userscripts/src/brzmp0a9.user.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name Trakt.tv | Bug Fixes and Optimizations
33
// @description A large collection of bug fixes and optimizations for trakt.tv. Organized into sections with comments detailing what specific issues are being addressed.
4-
// @version 0.7.0
4+
// @version 0.7.1
55
// @namespace brzmp0a9
66
// @icon https://trakt.tv/assets/logos/logomark.square.gradient-b644b16c38ff775861b4b1f58c1230f6a097a2466ab33ae00445a505c33fcb91.svg
77
// @match https://trakt.tv/*
@@ -126,8 +126,9 @@ GM_addStyle(`
126126
}
127127
`);
128128
window.addEventListener('turbo:load', () => {
129-
const $infoWrapper = unsafeWindow.jQuery('body.touch-device #info-wrapper');
129+
const $infoWrapper = unsafeWindow.jQuery('body.touch-device #info-wrapper:has(.sidebar)');
130130
$infoWrapper.swipe({
131+
excludedElements: '#summary-ratings-wrapper .stats, #info-wrapper .season-links .links, #actors .posters',
131132
swipeRight: (_evt, _direction, _distance, _duration, _fingerCount, fingerData) => fingerData[0].start.x < 50 && $infoWrapper.addClass('with-mobile-sidebar'),
132133
swipeLeft: (_evt, _direction, _distance, _duration, _fingerCount, _fingerData) => $infoWrapper.removeClass('with-mobile-sidebar'),
133134
});

0 commit comments

Comments
 (0)