Greasy Fork

Shined up real nice.

Greasy Fork is available in English.

Damai Enable Ticket

Enable disabled tickets in Damai.cn

试用之后,您可以提问、评论或举报这个脚本
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ==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 <openszone@gmail.com>
// @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;