隐藏<a> tag in Grease Monkey

时间:2015-09-25 17:24:54

标签: javascript jquery greasemonkey

<div id="hub-clock-time-entry" class="hub-clock-time-entry">
    <h3>YOU'RE CURRENTLY NOT CLOCKED IN</h3>
    <table class="hub-clock-time-buckets">
    <tbody>
        <tr>
            <td></td>
            <td>
                <button id="btnMeClockIn" class="large positive fill" type="button">
                    CLOCK IN NOW
                </button>
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="small" style="text-align: center;">
                <a id="lnkClockInMulligan" href="javascript:void(0);"
                   data-hasqtip="true">Forgot to clock in earlier?</a>
            </td>
        </tr>
    </tbody>
    </table>
</div>

I am trying to have Grease Monkey find the "Forgot to clock in earlier?" link, and disable it (hide or delete). Hiding the entire DIV was easy, however, I am having trouble hiding the link based on its id.

0 个答案:

没有答案