Overlay QuiverPRO - Coneccta

Interface overlay

目前为 2023-06-01 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.gf.qytechs.cn/scripts/467601/1198855/Overlay%20QuiverPRO%20-%20Coneccta.js

  1. function aguardarElemento(seletorReferencia, callback, FrequenciaMs, timeoutMs) {
  2. var InicioMs = Date.now();
  3.  
  4. function loopPesquisa() {
  5.  
  6. if (document.querySelector(seletorReferencia) !== null) {
  7. console.log(document.querySelector(seletorReferencia));
  8. callback();
  9. return;
  10. } else {
  11. setTimeout(function() {
  12. if (timeoutMs && Date.now() - InicioMs > timeoutMs) {
  13. return;
  14. }
  15. loopPesquisa();
  16. }, FrequenciaMs);
  17. }
  18. }
  19.  
  20. loopPesquisa();
  21. }
  22.  
  23. (function() {
  24. 'use strict';
  25. function inserirElemento(divReferencia, divClassName, labelClassName, styleName, labelText) {
  26. var referencia = document.getElementById(divReferencia);
  27. let div = document.createElement('div')
  28. div.className = divClassName
  29. let label = document.createElement('label');
  30. label.className = labelClassName
  31. label.textContent = labelText;
  32. label.style.cssText = styleName;
  33. referencia.appendChild(div);
  34. div.appendChild(label)
  35. }
  36. const labelStyle = `
  37. position: static;
  38. font-family: inherit;
  39. font-size: 2em;
  40. letter-spacing: 0px;
  41. text-transform: uppercase;
  42. width: 100%;
  43. text-align: center;
  44. font-color: #fff;
  45. line-height: 2em;
  46. outline: none;
  47. animation: animate 10s linear infinite;
  48. border: 1px solid black;
  49. border-radius: 5px;
  50. animation: blinkingC 1s infinite;
  51. `;
  52. const labelStyle2 = `
  53. position: static;
  54. font-family: inherit;
  55. font-size: 2em;
  56. letter-spacing: 0px;
  57. text-transform: uppercase;
  58. width: 100%;
  59. text-align: center;
  60. font-color: #fff;
  61. line-height: 2em;
  62. outline: none;
  63. animation: animate 10s linear infinite;
  64. border: 1px solid black;
  65. border-radius: 5px;
  66. animation: blinkingC2 1s infinite;
  67. `;
  68.  
  69. const blinkAnimation = `
  70. @keyframes blinkingC {
  71. 0% {
  72. color: white;
  73. background: #03a600;
  74. }
  75. 100% {
  76. color: lightcyan;
  77. background: #bfbf10;
  78. }
  79. }
  80. `;
  81.  
  82. const blinkAnimation2 = `
  83. @keyframes blinkingC2 {
  84. 0% {
  85. color: white;
  86. background: #bfbf10;
  87. }
  88. 100% {
  89. color: lightcyan;
  90. background: #03a600;
  91. }
  92. }
  93. `;
  94.  
  95. const style = document.createElement('style');
  96. style.appendChild(document.createTextNode(blinkAnimation));
  97. style.appendChild(document.createTextNode(blinkAnimation2));
  98. document.head.appendChild(style);
  99.  
  100. aguardarElemento("#DIVPadrao2000_Observacoes", function() {
  101. inserirElemento("DIVPadrao2000_Observacoes", "card-Overlay", "label-Overlay", labelStyle, "Informe que a ligação está sendo gravada");
  102. }, 1000, 900000);
  103.  
  104. aguardarElemento("#BoxDadosSegurado", function() {
  105. inserirElemento("BoxDadosSegurado", "card-Overlay", "label-Overlay", labelStyle2, "Verificar grupo de afinidade");
  106. }, 1000, 900000);
  107.  
  108. aguardarElemento("#DIVPadrao2000_Cobertura190 > div", function() {
  109. inserirElemento("DIVPadrao2000_Cobertura190", "card-Overlay", "label-Overlay-tipo-uso", labelStyle, "Esclarecer que uso particular implica em não utilizar o veículo para atividade comercial");
  110. var elementoInserido = document.getElementsByClassName("label-Overlay-tipo-uso")[0]
  111. document.querySelector("#BoxInforLoc > div > div:nth-child(1)").appendChild(elementoInserido)
  112.  
  113. }, 1000, 900000);
  114.  
  115. aguardarElemento("#BoxCobsBasicas", function() {
  116. inserirElemento("BoxCobsBasicas", "card-Overlay", "label-Overlay", labelStyle2, "Verificar se as coberturas atendem o segurado");
  117. }, 1000, 900000);
  118.  
  119. aguardarElemento("#BoxBoxRenovacao", function() {
  120. inserirElemento("BoxBoxRenovacao", "card-Overlay", "label-Overlay", labelStyle, "Verificar se o segurado acionou o seguro na última vigência");
  121. }, 1000, 900000);
  122.  
  123. aguardarElemento("#DIVDadosCondutor", function() {
  124. inserirElemento("BoxInforCond", "card-Overlay", "label-Overlay-dados-condutor", labelStyle2, "Deve ser informado o condutor mais jovem de uso frequente");
  125. var valorSlider = document.querySelector("#Padrao2000_Cobertura199909").value
  126. var slider = document.getElementsByClassName("slider round")[0]
  127. var elementoInserido = document.getElementsByClassName("label-Overlay-dados-condutor")[0]
  128. if(valorSlider === "True") { elementoInserido.style.display = "none"; elementoInserido.id = "label-slider-inativo"; } else { elementoInserido.style.display = ""; elementoInserido.id = "label-slider-ativo";};
  129. slider.addEventListener("click", () => { switch(elementoInserido.id) {
  130. case 'label-slider-inativo':
  131. elementoInserido.style.display = "";
  132. elementoInserido.id = "label-slider-ativo";
  133. break;
  134. case 'label-slider-ativo':
  135. elementoInserido.style.display = "none";
  136. elementoInserido.id = "label-slider-inativo";
  137. break
  138. }})
  139. }, 1000, 9000000);
  140.  
  141. aguardarElemento("#gview_GridAcomp > div:nth-child(2)", function() {
  142. var coberturasValoresDiv = document.querySelector("#gbox_GridAcomp")
  143. coberturasValoresDiv.id = "coberturas-valores"
  144. inserirElemento("coberturas-valores", "card-Overlay", "label-Overlay-cobertura-Valores", labelStyle, "Confirmar coberturas (inclusive teto solar e carro reserva)");
  145. var elementoInserido = document.getElementsByClassName("label-Overlay-cobertura-Valores")[0]
  146. coberturasValoresDiv.prepend(elementoInserido)
  147. }, 1000, 900000);
  148.  
  149. aguardarElemento("#BoxgrpFormaPgto > div:nth-child(12)", function() {
  150. inserirElemento("BoxgrpFormaPgto", "card-Overlay", "label-Overlay-forma-pagamento", labelStyle, "Confirmar se o segurado é o titular da conta. Caso não seja, entrar em contato com o titular.");
  151. var elementoInserido = document.getElementsByClassName("label-Overlay-forma-pagamento")[0]
  152. document.getElementById("BoxgrpFormaPgto").prepend(elementoInserido)
  153. }, 1000, 900000);
  154.  
  155. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址