Advertisement
csako

Fototrend.hu spell check repair

Dec 21st, 2017
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Fototrend Spellcheck
  3. // @namespace    http://tampermonkey.net/
  4. // @version      1.5
  5. // @description  spellcheck value correction
  6. // @author       levihu
  7. // @match       https://fototrend.hu/*
  8. // @grant    none
  9. // ==/UserScript==
  10. //- The @grant directive is needed to restore the proper sandbox.
  11.  
  12. document.addEventListener('input', spellCheck0);
  13.   function spellCheck0() {
  14.     var GMnode, GMnode2, GMelID, GMelID2;
  15.     GMelID="mce_0";
  16.     GMelID2="mce_3";
  17.     GMnode=document.getElementById(GMelID);
  18.     GMnode2=document.getElementById(GMelID2);
  19.     if((GMnode!==null)&&(GMnode.hasAttribute("spellcheck"))){
  20.       GMnode.setAttribute("spellcheck","true");
  21.     }
  22. if((GMnode2!==null)&&(GMnode2.hasAttribute("spellcheck"))){
  23.       GMnode2.setAttribute("spellcheck","true");
  24.     }
  25.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement