Greasy Fork is available in English.

formofavi

Force mobile facebook view

// ==UserScript==
// @name         formofavi
// @namespace    null
// @version      0.3
// @description  Force mobile facebook view
// @author       gidiigekau
// @match https://*/*
// @run-at document-start
// ==/UserScript==

if (self === top && (/(?:www.facebook.com)/).test(document.location.href)) {
    var target = document.location.href.replace(/www.facebook/g, "m.facebook");
    window.location.replace(target);
}

if (self === top && (/(?:https:\/\/m.facebook.com\/login\/\?next\=)/).test(document.location.href)) {
    var next = decodeURIComponent(document.location.href.split('?next=')[1]);
    window.location.replace(next);
}