BlogsMarks - Enable Automatic spell checking for inputs Title, Public and Private Tags

Enable Automatic spell checking for input Title and Public Private Tags

// ==UserScript==
// @name         BlogsMarks - Enable Automatic spell checking for inputs Title, Public and Private Tags
// @namespace    https://blogmarks.net
// @version      0.1
// @description  Enable Automatic spell checking for input Title and Public Private Tags
// @author       Decembre
// @icon         https://icons.iconarchive.com/icons/sicons/basic-round-social/48/blogmarks-icon.png
// @match        https://blogmarks.net/*
// @grant        none
// ==/UserScript==

(function() {
  'use strict';
  var titleInput = document.querySelector('.b #mark-form fieldset input#new-title');
  var publicTagsInput = document.querySelector('.b #mark-form fieldset input#new-publictags');
  var privateTagsInput = document.querySelector('.b #mark-form fieldset input#new-privatetags');

  if (titleInput) {
    titleInput.spellcheck = true;
  }
  if (publicTagsInput) {
    publicTagsInput.spellcheck = true;
  }
  if (privateTagsInput) {
    privateTagsInput.spellcheck = true;
  }
})();