responsive-domain-search.js 1.8 KB

1234567891011121314151617181920212223242526272829
  1. /*! @preserve
  2. * Created at 10 July and modified at 02 November 2018 by PlanetCloud.
  3. * Modified at 16 March 2019 by Dog2puppy.
  4. * Last modified at 06 August 2022 by Anyx.
  5. * DO NOT REMOVE CREDITS!
  6. * Created for: Wybe Network.
  7. */
  8. document.addEventListener("DOMContentLoaded", function() {
  9. if ("undefined" == typeof affCode) affCode = "25147";
  10. (function(b, a) {
  11. for (var c = 0; c < b.length; c++) a(b[c])
  12. })(document.querySelectorAll('form[action^="https://ifastnet.com/portal/domainchecker.php"]'), function(b) {
  13. widget = b.parentElement;
  14. form = document.createElement("form");
  15. form.setAttribute("class", "form-inline");
  16. form.setAttribute("target", "_blank");
  17. form.setAttribute("action", "https://ifastnet.com/portal/domainchecker.php?aff=" + affCode);
  18. form.setAttribute("method", "post");
  19. form.innerHTML = '<input type="hidden" name="direct" value="true"><input type="hidden" name="aff" value="' + affCode + '"><div class="form-group" style="margin: 20px; 10px;"><input type="text" class="form-control" name="domain" size="54"></div><div class="form-group" style="margin: 20px; 10px;"><select name="ext" class="form-control"><option>.com</option><option>.net</option><option>.org</option><option>.info</option><option>.cc</option><option>.co.uk</option><option>.biz</option><option>.bz</option><option>.eu</option><option>.mobi</option><option>.us</option><option>.name</option></select></div><button class="btn btn-info">Check Now</button>';
  20. col = document.createElement("div");
  21. col.setAttribute("class", "col-sm-12");
  22. col.appendChild(form);
  23. row = document.createElement("div");
  24. row.setAttribute("class", "row");
  25. row.appendChild(col);
  26. widget.innerHTML = "";
  27. widget.appendChild(row)
  28. })
  29. });