Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Fototrend Spellcheck
- // @namespace http://tampermonkey.net/
- // @version 1.5
- // @description spellcheck value correction
- // @author levihu
- // @match https://fototrend.hu/*
- // @grant none
- // ==/UserScript==
- //- The @grant directive is needed to restore the proper sandbox.
- document.addEventListener('input', spellCheck0);
- function spellCheck0() {
- var GMnode, GMnode2, GMelID, GMelID2;
- GMelID="mce_0";
- GMelID2="mce_3";
- GMnode=document.getElementById(GMelID);
- GMnode2=document.getElementById(GMelID2);
- if((GMnode!==null)&&(GMnode.hasAttribute("spellcheck"))){
- GMnode.setAttribute("spellcheck","true");
- }
- if((GMnode2!==null)&&(GMnode2.hasAttribute("spellcheck"))){
- GMnode2.setAttribute("spellcheck","true");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement