在您安裝前,Greasy Fork希望您了解本腳本包含“負面功能”,可能幫助腳本的作者獲利,而不能給你帶來任何收益。
作者從這份腳本獲得佣金, 例如透過重寫連結或提供優惠券代碼以加入推薦或附屬代碼
腳本的作者解釋:
此提示为GreasyFork代码规范要求含有查券功能的脚本必须添加,实际使用无任何强制跳转,代码可查,请知悉。
如果需要选择商品类型,请提前选择好类型会自动刷新,速度取决于您的当前网络!
目前為
// ==UserScript==
// @name 淘宝定时开抢
// @namespace http://tampermonkey.net/
// @version 0.2
// @description 如果需要选择商品类型,请提前选择好类型会自动刷新,速度取决于您的当前网络!
// @author You
// @icon https://www.google.com/s2/favicons?sz=64&domain=tmall.com
// @grant none
// @include *://item.taobao.com/*
// @include *://s.taobao.com/search*
// @include *://list.tmall.com/search_product.htm*
// @include *://detail.tmall.com/*
// @include *://chaoshi.detail.tmall.com/*
// @include *://detail.tmall.hk/*
// @grant GM_setClipboard
// @run-at document-end
// @connect shangxueba365.com
// @connect api.wandhi.com
// @connect cdn.jsdelivr.net
// @connect tool.manmanbuy.com
// @connect xbeibeix.com
// @connect gwdang.com
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @grant GM_info
// @grant GM.addStyle
// @grant GM_getValue
// @grant GM_setValue
// @grant GM_notification
// @grant GM_openInTab
// @grant GM_deleteValue
// @grant GM_registerMenuCommand
// @grant GM_unregisterMenuCommand
// @compatible firefox
// @compatible chrome
// @compatible opera safari edge
// @compatible safari
// @compatible edge
// @antifeature referral-link 此提示为GreasyFork代码规范要求含有查券功能的脚本必须添加,实际使用无任何强制跳转,代码可查,请知悉。
// @license MIT
// ==/UserScript==
(function() {
'use strict';
var dom = document.querySelector('#J_LinkBuy') || document.querySelector('.J_LinkBuy');
window.setInterval(fn, 100);
function fn() {
if(!dom) return;
dom.offsetParent ? dom.click() :window.location.reload();
}
})();