Greasy Fork is available in English.

Cloudflare DNS Records Identity List Fetcher

See your Cloudflare DNS records identity list

  1. // ==UserScript==
  2. // @name Cloudflare DNS Records Identity List Fetcher
  3. // @name:ar Cloudflare DNS Records Identity List Fetcher
  4. // @name:bg Cloudflare DNS Records Identity List Fetcher
  5. // @name:cs Cloudflare DNS Records Identity List Fetcher
  6. // @name:da Cloudflare DNS Records Identity List Fetcher
  7. // @name:de Cloudflare DNS Records Identity List Fetcher
  8. // @name:el Cloudflare DNS Records Identity List Fetcher
  9. // @name:en Cloudflare DNS Records Identity List Fetcher
  10. // @name:eo Cloudflare DNS Records Identity List Fetcher
  11. // @name:es Cloudflare DNS Records Identity List Fetcher
  12. // @name:fi Cloudflare DNS Records Identity List Fetcher
  13. // @name:fr Cloudflare DNS Records Identity List Fetcher
  14. // @name:fr-CA Cloudflare DNS Records Identity List Fetcher
  15. // @name:he Cloudflare DNS Records Identity List Fetcher
  16. // @name:hu Cloudflare DNS Records Identity List Fetcher
  17. // @name:id Cloudflare DNS Records Identity List Fetcher
  18. // @name:it Cloudflare DNS Records Identity List Fetcher
  19. // @name:ko Cloudflare DNS Records Identity List Fetcher
  20. // @name:ja Cloudflare DNS Records Identity List Fetcher
  21. // @name:nb Cloudflare DNS Records Identity List Fetcher
  22. // @name:nl Cloudflare DNS Records Identity List Fetcher
  23. // @name:pl Cloudflare DNS Records Identity List Fetcher
  24. // @name:pt-BR Cloudflare DNS Records Identity List Fetcher
  25. // @name:ro Cloudflare DNS Records Identity List Fetcher
  26. // @name:ru Cloudflare DNS Records Identity List Fetcher
  27. // @name:sk Cloudflare DNS Records Identity List Fetcher
  28. // @name:sr Cloudflare DNS Records Identity List Fetcher
  29. // @name:sv Cloudflare DNS Records Identity List Fetcher
  30. // @name:th Cloudflare DNS Records Identity List Fetcher
  31. // @name:tr Cloudflare DNS Records Identity List Fetcher
  32. // @name:uk Cloudflare DNS Records Identity List Fetcher
  33. // @name:ug Cloudflare DNS Records Identity List Fetcher
  34. // @name:vi Cloudflare DNS Records Identity List Fetcher
  35. // @name:zh-CN Cloudflare DNS Records Identity List Fetcher
  36. // @name:zh-TW Cloudflare DNS Records Identity List Fetcher
  37. // @description See your Cloudflare DNS records identity list
  38. // @description:ar See your Cloudflare DNS records identity list
  39. // @description:bg See your Cloudflare DNS records identity list
  40. // @description:cs See your Cloudflare DNS records identity list
  41. // @description:da See your Cloudflare DNS records identity list
  42. // @description:de See your Cloudflare DNS records identity list
  43. // @description:el See your Cloudflare DNS records identity list
  44. // @description:en See your Cloudflare DNS records identity list
  45. // @description:eo See your Cloudflare DNS records identity list
  46. // @description:es See your Cloudflare DNS records identity list
  47. // @description:fi See your Cloudflare DNS records identity list
  48. // @description:fr See your Cloudflare DNS records identity list
  49. // @description:fr-CA See your Cloudflare DNS records identity list
  50. // @description:he See your Cloudflare DNS records identity list
  51. // @description:hu See your Cloudflare DNS records identity list
  52. // @description:id See your Cloudflare DNS records identity list
  53. // @description:it See your Cloudflare DNS records identity list
  54. // @description:ja See your Cloudflare DNS records identity list
  55. // @description:ko See your Cloudflare DNS records identity list
  56. // @description:nb See your Cloudflare DNS records identity list
  57. // @description:nl See your Cloudflare DNS records identity list
  58. // @description:pl See your Cloudflare DNS records identity list
  59. // @description:pt-BR See your Cloudflare DNS records identity list
  60. // @description:ro See your Cloudflare DNS records identity list
  61. // @description:ru See your Cloudflare DNS records identity list
  62. // @description:sk See your Cloudflare DNS records identity list
  63. // @description:sr See your Cloudflare DNS records identity list
  64. // @description:sv See your Cloudflare DNS records identity list
  65. // @description:th See your Cloudflare DNS records identity list
  66. // @description:tr See your Cloudflare DNS records identity list
  67. // @description:uk See your Cloudflare DNS records identity list
  68. // @description:ug See your Cloudflare DNS records identity list
  69. // @description:vi See your Cloudflare DNS records identity list
  70. // @description:zh-CN See your Cloudflare DNS records identity list
  71. // @description:zh-TW See your Cloudflare DNS records identity list
  72. // @author fir4tozden
  73. // @version 1.3
  74. // @license MIT
  75. // @namespace https://greasyfork.org/users/821317
  76. // @match *://dash.cloudflare.com/*/*/dns/records
  77. // @icon https://www.google.com/s2/favicons?domain=cloudflare.com
  78. // @require https://code.jquery.com/jquery-3.6.0.min.js
  79. // ==/UserScript==
  80.  
  81. $(function () {
  82. let s = !0;
  83. $.ajax({
  84. method: "GET"
  85. , url: "/api/v4/system/bootstrap"
  86. , headers: {
  87. "x-cross-site-security": "dash"
  88. }
  89. , success: e => {
  90. $.ajax({
  91. method: "GET"
  92. , url: "/api/v4/zones?name=" + location.pathname.split("/")[2] + "&account.id=" + location.pathname.split("/")[1]
  93. , headers: {
  94. "x-cross-site-security": "dash"
  95. , "x-atok": e.result.data.atok
  96. }
  97. , success: a => {
  98. $.ajax({
  99. method: "GET"
  100. , url: "/api/v4/zones/" + a.result[0].id + "/dns_records"
  101. , headers: {
  102. "x-cross-site-security": "dash"
  103. , "x-atok": e.result.data.atok
  104. }
  105. , success: e => {
  106. !0 === confirm("Do you want see DNS records identities?") && e.result.forEach(e => {
  107. if (!0 === s) {
  108. null === prompt(e.name, e.id) && (s = !1)
  109. }
  110. })
  111. }
  112. })
  113. }
  114. })
  115. }
  116. })
  117. });