Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name premiumleech
- // @namespace premiumleech
- // @include http://generator.premiumleech.com/link/*.html
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
- // @grant GM_addStyle
- // ==/UserScript==
- /*- The @grant directive is needed to work around a design change
- introduced in GM 1.0. It restores the sandbox.
- */
- /*
- <p class="leech-btn"><button onclick="javascript:window.open('http://generator.premiumleech.com/redir/BtPpnGJv2HcZRa2BTxsEQzUdDQbb6WO1','_blank');">Leech it!</button></p>
- */
- /*
- /html/body/div[2]/div/section/p[2]
- */
- var targBtn = $("#content > p.leech-btn > button");
- if (targBtn.length) {
- targBtn[0].click ();
- }
- /*
- var targBtn = $("body > div:eq(1) > div:first > div:first > p.leech-btn > button");
- if (targBtn.length) {
- targBtn[0].click ();
- }
- */
- /*
- function searchKeyPress(e)
- {
- // look for window.event in case event isn't passed in
- if (typeof e == 'undefined' && window.event) { e = window.event; }
- if (e.keyCode == 13)
- {
- document.getElementById('btnSearch').click();
- }
- }
- */
- /*
- function clickc()
- {
- var el = document.querySelector("_blank");
- var evt = document.createEvent("MouseEvents");
- event.initMouseEvent("click", true, true, window,
- 0, 0, 0, 0, 0,
- false, false, false, false,
- 0, null);
- el.dispatchEvent(evt);
- }
- window.setTimeout(clickc, 0);
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement