您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Always set news feed to 'Most Recent'.
当前为
- // ==UserScript==
- // @name Facebook - Force Most Recent
- // @namespace https://greasyfork.org/users/222319
- // @version 1.0.2
- // @description Always set news feed to 'Most Recent'.
- // @author Explisam <explisam@gmail.com>
- // @compatible chrome
- // @compatible firefox
- // @compatible opera
- // @compatible safari
- // @license MIT License <https://opensource.org/licenses/MIT>
- // @include *www.facebook.com
- // @include *www.facebook.com/
- // @include *www.facebook.com/?*
- // @run-at document-start
- // ==/UserScript==
- (function() {
- 'use strict';
- var url_string = window.location.href;
- var url = new URL(url_string);
- var sk = url.searchParams.get("sk");
- var p = (/(?<=\?).+/).exec(url_string);
- if (sk !== "h_chr") {
- var params = p ? p.toString().replace(/sk=.*?(&|$)/, "") : "";
- params = params.concat(params ? params.match(/&$/) ? "sk=h_chr" : "&sk=h_chr" : "sk=h_chr");
- window.location.replace(("https://www.facebook.com/?").concat(params));
- }
- })();