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

Enable Automatic spell checking for input Title and Public Private Tags

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         BlogsMarks - Enable Automatic spell checking for inputs Title, Public and Private Tags
// @namespace    https://blogmarks.net
// @version      0.2
// @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;
  }
})();