formofavi

Force mobile facebook view

当前为 2021-09-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name formofavi
  3. // @namespace null
  4. // @version 0.2
  5. // @description Force mobile facebook view
  6. // @author gidiigekau
  7. // @match https://*/*
  8. // @run-at document-start
  9. // ==/UserScript==
  10.  
  11. if (self === top && (/(?:www.facebook.com)/).test(document.location.href)) {
  12. var target = document.location.href.replace(/www.facebook/g, "m.facebook");
  13. window.location.replace(target);
  14. }