Facebook Auto "Most Recent" Stories

Change Facebook feed to "Most Recent" Stories

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name Facebook Auto "Most Recent" Stories
// @version	1.0
// @author Hélder Ferreira
// @namespace https://greasyfork.org/users/89591
// @homepageURL https://greasyfork.org/en/scripts/26018-facebook-auto-most-recent-stories/
// @description	Change Facebook feed to "Most Recent" Stories
// @icon http://i.imgur.com/WpjyLA4.png
// @match *://www.facebook.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @grant none
// ==/UserScript==

$(window).ready(function(){
  var url=$(location).attr("href");
  var h_chr="https://www.facebook.com/?sk=h_chr";
  var h_nor="https://www.facebook.com/?sk=h_nor";
  var logo="https://www.facebook.com/?ref=logo";
  
  if(url == h_nor){
    window.location.replace(h_chr);
  }
  if(url == logo){
    window.location.replace(h_chr);
  }
  else if(url == "https://www.facebook.com/"){
    window.location.replace(h_chr);
  }
  
  $("[data-click='bluebar_logo'] > a").attr("href", h_chr);
});