大麦抢票脚本-记得安装脚本软件
Chrome:Tampermonkey 或 Violent monkey
Firefox:Greasemonkey、Tampermonkey
1.选中场次票价,登录填好收货信息
// ==UserScript==
// @name 大麦抢票-选场次票价人数
// @namespace https://www.jwang0614.top/scripts
// @version 0.6
// @description 辅助购买大麦网演唱会门票
// @author Olivia Wang
// @match https://detail.damai.cn/*
// @grant none
// ==/UserScript==
(function() {
//'use strict';
// Your code here...
if(!window.localStorage){
alert('不支持这个浏览器,请换成Chrome或者Safari。');
return null;
}
/**** 改人数 ***/
var people_num = 1;
var storage = window.localStorage;
storage.setItem("people_num", people_num);
//storage.clear();
var start = document.createElement("P");
start.appendChild(document.createTextNode("开始抢票 (ctrl+E)"));
start.style.lineheight="50px";
start.style.color="white";
start.style.fontSize="30px";
start.style.padding="10px 20px";
start.style.background="green";
start.style.position="fixed";
start.style.right="30px";
start.style.top="100px";
start.style.zIndex="10000";
var stop = document.createElement("P");
stop.appendChild(document.createTextNode("停止抢票 (ctrl+T)"));
stop.style.lineheight="50px";
stop.style.color="white";
stop.style.fontSize="30px";
stop.style.padding="10px 20px";
stop.style.background="black";
stop.style.position="fixed";
stop.style.right="30px";
stop.style.top="200px";
stop.style.zIndex="10000";
var notice = document.createElement("DIV");
notice.style.color="white";
notice.style.background="darkseagreen";
notice.style.fontSize="20px";
notice.style.padding="10px 20px";
notice.style.position="fixed";
notice.style.right="30px";
notice.style.top="300px";
notice.style.lineheight="30px";
notice.style.zIndex = "10000";
notice.style.width = "300px";
var notice_0 = document.createElement("P");
notice_0.appendChild(document.createTextNode("1.选择场次 2.选择价格 3.点击‘开始抢票’"));
var notice_1 = document.createElement("P");
notice_1.appendChild(document.createTextNode("当前选择人数:" + people_num + "人"));
var notice_2 = document.createElement("P");
notice_2.appendChild(document.createTextNode("如需改变请