您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Auto scroll back when switch from messenger tab to news feed.
当前为
- // ==UserScript==
- // @name m.facebook.com Auto Scroll Back
- // @namespace http://tampermonkey.net/
- // @version 1.5
- // @description Auto scroll back when switch from messenger tab to news feed.
- // @author Psyblade
- // @match https://m.facebook.com/*
- // @grant none
- // @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
- // ==/UserScript==
- this.$ = this.jQuery = jQuery.noConflict(true);
- var giatriy = 0;
- $( document ).ready(function() {
- $( "#u_0_b" ).click(function() {
- giatriy = window.pageYOffset;
- });
- });
- $( document ).ready(function() {
- $( "#u_0_d" ).click(function() {
- giatriy = window.pageYOffset;
- });
- });
- $( document ).ready(function() {
- $( "#u_0_9" ).click(function() {
- giatriy = window.pageYOffset;
- });
- });
- $( document ).ready(function() {
- $( "#u_0_8" ).click(function() {
- setTimeout(function() {
- window.scrollTo(0, giatriy);
- }, 50);
- });
- });