FB2mbasic

重整網頁就轉成mbasic.FB,避免www.FB或m.FB不定時重整讓您丟失目前網頁問題。Reload webpage to switch mbasic.FB, in order to avoid intermittent updates on www.FB or m.FB that may cause you to lose your current webpage state.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         FB2mbasic
// @author       Li_Bibo
// @namespace    https://greasyfork.org/zh-TW/scripts/474729
// @description  重整網頁就轉成mbasic.FB,避免www.FB或m.FB不定時重整讓您丟失目前網頁問題。Reload webpage to switch mbasic.FB, in order to avoid intermittent updates on www.FB or m.FB that may cause you to lose your current webpage state.
// @match        *://www.facebook.com/*
// @match        *://m.facebook.com/*
// @run-at       document-start
// @version 0.2.1.2
// @license     GNU GPLv3
// ==/UserScript==
var utm = location.href.match("//www.", "//m.")
if (utm == null)
{
    return
}
else
{
    utm = location.href.replace("//www.", "//mbasic.");
    location.replace (utm);
}
var url = location.href.match("//mbasic.")
if (url == null)
{
    return
}
else
{
    url = location.href.replace("//m.", "//mbasic.");
    location.replace (url);
};