Tampermonkey:油猴腳本自動搶購斯巴達spartanhost 建站
導讀:建站文章建站文章 最近斯巴達(SpartanHost)VPS比較火,一機難求,剛剛看到群友分享的js腳本用于搶購,效果還不錯,推薦使用chrome瀏覽器,安裝Tampermon網站建設制作建設網站。
最近斯巴達(SpartanHost)VPS比較火,一機難求,剛剛看到群友分享的js腳本用于搶購,效果還不錯,推薦使用chrome瀏覽器,安裝Tampermonkey擴展使用。
腳本:
// ==UserScript== // @name 自動搶購買vps // @namespace https://www.haiyun.me // @version 0.1 // @description buy spartanhost vps // @author www.haiyun.me // @match https://billing.spartanhost.net/cart.php?a=* // @grant none // ==/UserScript== (function() { var forcedReload = false; var time = 500; var url = document.URL; var hostname = "www.haiyun.me"; var customfield = "website"; if (document.title == '502 Bad Gateway') { setTimeout(function() { window.location.reload(forcedReload); }, time); } else if (document.title == '504 Gateway Time-out') { setTimeout(function() { window.location.reload(forcedReload); }, time); } else if (document.title == '503 Service Temporarily Unavailable') { setTimeout(function() { window.location.reload(forcedReload); }, time); } else if (document.title == '500 Internal Server Error') { setTimeout(function() { window.location.reload(forcedReload); }, time); } else if (document.getElementsByTagName('h1')[0].innerHTML == '無法訪問此網站') { setTimeout(function() { window.location.reload(forcedReload); }, time); } if (url.indexOf("https://billing.spartanhost.net/cart.php?a=add") != -1) { var str = document.getElementById("order-boxes").innerHTML; if (str.indexOf("Out of Stock")網站seo優(yōu)化診斷工具 != -1) { setTimeout(function() { window.location.reload(forcedReload); }, time); } } else if (url.indexOf("https://billing.spartanhost.net/cart.php?a=confproduct") != -1) { document.getElementById("inputHostname").value = hostname; var element = document.querySelector('input[name^="customfield"]'); element.value = customfield; document.getElementById("btnCompleteProductConfig").click(); } else if (url.indexOf("https://billing.spartanhost.net/cart.php?a=view") != -1) { document.getElemenseo網站排名優(yōu)化軟件tById("checkout"網站seo優(yōu)化軟件).click(); } else if (url.indexOf("https://billing.spartanhost.net/cart.php?a=checkout") != -1) { document.getElementById("iCheck-accepttos").click(); document.getElementById("btnCompleteOrder").click(); } })();使用方法:
安裝Tampermonkey擴展。直接添加腳本使用,推薦使用chrome瀏覽器

關鍵詞標簽: 暫無
聲明: 本文由我的SEOUC技術文章主頁發(fā)布于:2023-05-28 ,文章Tampermonkey:油猴腳本自動搶購斯巴達spartanhost 建站主要講述暫無網站建設源碼以及服務器配置搭建相關技術文章。轉載請保留鏈接: http://www.bifwcx.com/article/web_11735.html