跳转到最上 //var _nowLineTop = $(".now-line").offset().top;//var _nowLineTop = $(".now-line").position().top;//$(".sc-view.timed-scroll .sc-container-view").scrollTop(_nowLineTop);var _top = $(".sc-view.timed-scroll .sc-container-view"
//var _nowLineTop = $(".now-line").offset().top;
//var _nowLineTop = $(".now-line").position().top;
//$(".sc-view.timed-scroll > .sc-container-view").scrollTop(_nowLineTop);
var _top = $(".sc-view.timed-scroll > .sc-container-view").offset().top;
$(".sc-view.timed-scroll > .sc-container-view").scrollTop($(".now-line").position().top - _top);
var _top = $(".sc-view.timed-scroll > .sc-container-view").offset().top;
var _scrollTop = $(".now-line").position().top;
$(".sc-view.timed-scroll > .sc-container-view").scrollTop(_scrollTop);
console.info("scroll", _scrollTop);
插件自动滚动
// ==UserScript==
// @name icloud 日历自动滚动
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author Topin
// @match https://www.icloud.com/applications/calendar/current/zh-cn/index.html
// @grant none
// ==/UserScript==
(function() {
console.info("日历自动滚动-启用");
setInterval(function(){
var _scrollTop = $(".now-line").position().top;
$(".sc-view.timed-scroll > .sc-container-view").scrollTop(_scrollTop - 33);
console.info("scroll", _scrollTop);
}, 1000*20);
})();
