// ==UserScript== // @name 起点自动领经验 // @namespace http://tampermonkey.net/ // @version 2.1 // @description try to take over the world! // @author 菠菜 // @match http://t.qidian.com/Profile/Score.php // @grant none // @downloadURL none // ==/UserScript== (function() { 'use strict'; jQuery(function($) { $(document).ready(function(){ var quanbu = $("a.btn").text(); var linga=quanbu.indexOf("可领取"); if (linga>0) { $('a[id^=online-exp-get]').each(function() { var id = $(this).attr('id'); var mins = parseInt(id.replace('online-exp-get', ''), 10); $.closeAllDialog(); $.loading(); $.ajax( { type: "get", url: "/Ajax/Occupation.php", data: { ajaxMethod: 'getonlineexp', minutes: mins, random: Math.random() }, dataType: "json", success: function(result) { $.loadingClose(); if (result.returnCode === true) { location.reload(true); } else { location.reload(true); } } }); }); } else { ( function startTime(){ var newtime=new Date(); newtime.setFullYear(2020,1,1); var settime = new Date(2020,1,1,0,0,5); if (newtime