tecselect

Permitir Seleção de textos no TEC Concursos

  1. // ==UserScript==
  2. // @name tecselect
  3. // @namespace https://github.com/xaxim/
  4. // @version 0.2
  5. // @description Permitir Seleção de textos no TEC Concursos
  6. // @author xaxim
  7. // @match *://*.tecconcursos.com.br/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. (function () {
  12. 'use strict';
  13. let limpezaConcluida = false;
  14.  
  15. function removeRestricao() {
  16. if (limpezaConcluida) return;
  17. let noselectable = document.querySelector('.noselect');
  18. if (noselectable) {
  19. noselectable.classList.toggle('noselect');
  20. limpezaConcluida = true;
  21. console.info('Agora pode marcar onde voce estava...', noselectable.className);
  22. }
  23. }
  24. setInterval(removeRestricao, 1000);
  25.  
  26. })();