Facebook Auto Redirect Most Recent

GoodBye Top Stories

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name Facebook Auto Redirect Most Recent
// @version	0.2
// @author Akbar Yahya & Hélder Ferreira
// @description	GoodBye Top Stories
// @icon http://i.imgur.com/WpjyLA4.png
// @include	https://www.facebook.com/*
// @include	http://www.facebook.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js
// @grant none
// @namespace https://greasyfork.org/users/11997
// ==/UserScript==
var siakbary = "http://www.facebook.com/?siakbary=true&sk=h_chr";
$(window).ready(function(){
    var urlx=window.location.href;
    if (window.location.pathname == '/' ){
     // Index (home) page
     if(urlx.indexOf( "?siakbary=true" ) == -1)
         window.location.replace(siakbary);
    } else {
     // Other page
     console.log(urlx);
    }
});
$("[data-click='home_icon']").click(function(){
    window.location.replace(siakbary);
});
$('a[data-testid="blue_bar_fb_logo"]').attr("href", siakbary);