Damai Enable Ticket

Enable disabled tickets in Damai.cn

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name         Damai Enable Ticket
// @namespace    https://greasyfork.org/zh-CN/scripts/10790-damai-enable-ticket
// @version      0.1
// @description  Enable disabled tickets in Damai.cn
// @icon         http://dui.damai.cn/dm_2015/goods/images/m-logo.png
// @license      GPL version 3
// @encoding     utf-8
// @date         07/05/2015
// @modified     07/05/2015
// @author       Myfreedom614 <[email protected]>
// @supportURL   http://openszone.com/
// @match        http://item.damai.cn/*
// @grant        none
// @copyright	 2015,Myfreedom614
// ==/UserScript==

var siteurl = document.URL;

function doCrack()
{
    var lis = document.getElementsByClassName('lst')[1];
    var items = lis.getElementsByClassName('itm');
    //alert(items.length);
    for(i in items)
    {
        items[i].className = 'itm ';
        //var price = items[i].getElementsByClassName('price')[0].innerHTML;
        //alert(items[i].className);
        //alert(price);
    }
}

var div = document.getElementsByClassName('m-crm')[0];
div.innerHTML += "<span class='arrow'>&gt;</span><a id='btnEnableItem'><strong style='cursor: pointer; color: red !important; text-decoration: none !important;text-shadow: 0 0 15px #FF0000 !important;'>显示隐藏票<strong><a>";

div = document.getElementById('btnEnableItem');
div.onclick = doCrack;