/inc/plugins/gomobile/inc/mobile.js Append this to the mobile.js file:
@media (prefers-color-scheme: dark) { body { background: #121212; color: #eee; } .thead, .tcat { background: #1e1e1e; } } Add a manual toggle: mybb mobile theme
$(document).on("swiperight", function(e) { if (history.length > 1) { history.back(); return false; } }); $(document).on("swipeleft", function(e) { // Optional: go forward (if you store next page) // Or just close modal/menu }); /inc/plugins/gomobile/inc/mobile
/inc/plugins/mybb_mobile/mobile.js or
To add a to the MyBB Mobile Theme (e.g., the popular MyBB Mobile or GoMobile plugin/theme), you’ll need to edit template files, add JavaScript/CSS, and possibly modify plugin PHP code. .tcat { background: #1e1e1e
if($mybb->settings['mobile_swipe_back'] && $GLOBALS['mobile_theme_enabled']) { $GLOBALS['headerinclude'] .= "<script>// swipe code here</script>"; } Another popular feature request – toggles dark/light mode.