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.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==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);
};