fix ua bug
This commit is contained in:
parent
75dd5374fc
commit
f1b0473345
|
@ -1,7 +1,7 @@
|
||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name tieba page
|
// @name tieba page
|
||||||
// @namespace https://github.com/fthvgb1/tampermonkey-script
|
// @namespace https://github.com/fthvgb1/tampermonkey-script
|
||||||
// @version 0.996
|
// @version 0.997
|
||||||
// @author fthvgb1
|
// @author fthvgb1
|
||||||
// @match https://tieba.baidu.com/*
|
// @match https://tieba.baidu.com/*
|
||||||
// @match https://tiebac.baidu.com/*
|
// @match https://tiebac.baidu.com/*
|
||||||
|
@ -347,7 +347,7 @@
|
||||||
|
|
||||||
function check() {
|
function check() {
|
||||||
let ua = navigator.userAgent.toLowerCase();
|
let ua = navigator.userAgent.toLowerCase();
|
||||||
return ua.indexOf('mobile') > -1 || ua.indexOf('phone');
|
return ua.indexOf('mobile') > -1 || ua.indexOf('phone') > -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
function p() {
|
function p() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user