設為首頁收藏本站

 取回密碼
 註冊
搜尋
熱搜: Redump discuz
檢視: 1434|回覆: 0

【轉貼】 Discus 論壇 在 pc 電腦上連接手機版 ( mobile ) 和 觸屏版(touch)設定

[複製連結]
發表於 2021年3月2日 03:18:07 | 顯示全部內容 |閱讀模式
Discus 論壇在 pc 電腦上 訪問手機版 ( mobile ) 和 觸屏版(touch)設定

1.   更改使用者代理 user agent

一般在瀏覽器上安裝UserAgent Switcher 外掛 即可更改使用者代理

Chrome瀏覽器安裝步驟:

(1)    進入設定,選擇 擴充功能

(2)    搜尋“User Agent Switcher”

https://www.fishman.idv.tw/phpforum/thread-19851-1-1.html

(3)    安裝好之後瀏覽器 右上角會有外掛圖示點選 馬上啟用後,選擇使用者代理即可

https://www.fishman.idv.tw/phpforum/thread-19851-1-1.html

https://www.fishman.idv.tw/phpforum/thread-19851-1-1.html

2.   修改程式:

網上看了好多 改這  改那的,其實只改一下static\js\mobile\common.js即可

把第一二行的 註釋掉,這個判斷 是否為觸屏裝置

/*var supporttouch = "ontouchend" in document;

!supporttouch && (window.location.href ='forum.php?mobile=1');*/


3.   好現在可以在電腦上隨意切換手機版(標準版 mobile) 觸屏版(touch) 和電腦版(pc)版了
作者文章推薦
懶得打字嗎?讓本助手協助你 【使用進階編輯器請點選右方進階模式】
您需要登入後才可以回覆 登入 | 註冊

本版積分規則

手機版|Archiver|漁家小舖

GMT+8, 2024年3月29日 09:56 , Processed in 0.261702 second(s), 17 queries , Gzip On, Redis On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回覆 返回頂端 返回清單