Architextures (Desbloquear Pro)

Um script que desbloqueia todas as funções pro do Architextures.

  1. // ==UserScript==
  2. // @name Architextures (Desbloquear Pro)
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Um script que desbloqueia todas as funções pro do Architextures.
  6. // @author Pedro6159
  7. // @match https://architextures.org/create*
  8. // @icon https://www.google.com/s2/favicons?sz=64&domain=architextures.org
  9. // @license MIT
  10. // @run-at document-end
  11. // @grant none
  12. // ==/UserScript==
  13.  
  14. (function () {
  15. 'use strict';
  16. function getListOfElementsByXpath(path) {
  17. var nodes = document.evaluate(path, document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  18. var result = [];
  19. for (var i = 0; i < nodes.snapshotLength; i++) {
  20. result.push(nodes.snapshotItem(i));
  21. }
  22. return result;
  23. }
  24. function initialize_code() {
  25. // Desbloqueia itens inativo e tira a opacidade
  26. var _a = getListOfElementsByXpath("//*[contains(@class,'inactive')]");
  27. for (let i = 0; i < _a.length; i++) {
  28. const d = _a[i]
  29. d.classList.remove("inactive")
  30. if (d.style.opacity != null)
  31. _a[i].style.opacity = "1";
  32. }
  33. // remove o rotulo de "pro"
  34. var _b = getListOfElementsByXpath("//*[contains(@class,'pro-feature')]");
  35. for (let i = 0; i < _b.length; i++) {
  36. _b[i].classList.remove("pro-feature")
  37. }
  38. // Desbloqueia as opções
  39. var _c = getListOfElementsByXpath("//*[@disabled]");
  40. for (let i = 0; i < _c.length; i++) {
  41. _c[i].removeAttribute("disabled")
  42. }
  43. // Desbloqueia outras configurações
  44. var _d = getListOfElementsByXpath("//*[contains(@class,'disabled')]");
  45. for (let i = 0; i < _d.length; i++) {
  46. _d[i].classList.remove("disabled")
  47. _d[i].classList.add("view-option-button");
  48. }
  49. }
  50.  
  51.  
  52. window.onload = function () {
  53. if (document.readyState == 'complete') {
  54. console.log("Trying to find the interface to inject the script...");
  55. setInterval(function () {
  56. var gui = document.getElementsByClassName("canvas-container output-container");
  57. if (gui) {
  58. initialize_code();
  59. }
  60. }, 5000);
  61. window.onload = null;
  62. }
  63. };
  64.  
  65.  
  66. })();