🍪 Cookies Rapidgator Premium Account Cookies Kayo Dyan! ...

PHC - Raijin-X

꧁𓊈𒆜° ꒓ꆂꁹ-ꏝꂑ꒒ °𒆜𓊉꧂
  1. // ==UserScript==
  2. // Name RapidGator Premium Downloader
  3. // @version 0.3
  4. // @description Downloads from RapidGator account
  5. // namespace You do not have permission to view the full content of this post. Log in or register now.
  6. // @downloadURL You do not have permission to view the full content of this post. Log in or register now.
  7. // include You do not have permission to view the full content of this post. Log in or register now.
  8. // include You do not have permission to view the full content of this post. Log in or register now.
  9. // ==/UserScript==
  10. (function () {
  11. var gm_plugin = function () {
  12. var options = {
  13. debug: false,
  14. openLink: true, // Open by clicking the link
  15. openUrl: false // Open by setting the window href
  16. };
  17. return {
  18. /**
  19. * Do the click
  20. */
  21. init: function () {
  22. if (document.title == 'File not found') {
  23. this.log('File not found - Closing');
  24. unsafeWindow.close();
  25. } else {
  26. var downloadLinks;
  27. downloadLinks = document.evaluate('//div[@class="btm"]/p/a', document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  28. for (var i = 0; i < downloadLinks.snapshotLength; i++) {
  29. var link = downloadLinks.snapshotItem(i);
  30. var url = link.href;
  31. if(options.openUrl == 1) {
  32. unsafeWindow.location.href = url;
  33. } else if(options.openLink == 1) {
  34. link.click();
  35. } else {
  36. this.log('Opening ' + url);
  37. }
  38. //unsafeWindow.location.href = link.href;
  39. //link.click();
  40. }
  41. }
  42. },
  43. /**
  44. * Log message
  45. *
  46. * @param message
  47. */
  48. log: function (message) {
  49. if (options.debug > 0) {
  50. console.log(message);
  51. }
  52. }
  53. };
  54. }
  55. var gm = new gm_plugin();
  56. gm.init();
  57. })();
- Delete Those Numerals! ... 🥰
 

About this Thread

  • 17
    Replies
  • 329
    Views
  • 16
    Participants
Last reply from:
phytagorasIII

Trending Topics

Online now

Members online
422
Guests online
2,451
Total visitors
2,873

Forum statistics

Threads
2,288,947
Posts
29,055,281
Members
1,214,427
Latest member
rvvvvvvv545
Back
Top