From f1b0473345146ecb63a5e78a35a68c6fd346655c Mon Sep 17 00:00:00 2001 From: xing Date: Wed, 8 Apr 2020 11:40:12 +0800 Subject: [PATCH] fix ua bug --- tieba page.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tieba page.js b/tieba page.js index f2eb50d..2876e85 100644 --- a/tieba page.js +++ b/tieba page.js @@ -1,7 +1,7 @@ // ==UserScript== // @name tieba page // @namespace https://github.com/fthvgb1/tampermonkey-script -// @version 0.996 +// @version 0.997 // @author fthvgb1 // @match https://tieba.baidu.com/* // @match https://tiebac.baidu.com/* @@ -347,7 +347,7 @@ function check() { let ua = navigator.userAgent.toLowerCase(); - return ua.indexOf('mobile') > -1 || ua.indexOf('phone'); + return ua.indexOf('mobile') > -1 || ua.indexOf('phone') > -1; } function p() {