SHARE
TWEET

Fototrend.hu spell check repair

csako Dec 21st, 2017 74 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.   }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top