CSW enable browser spellcheck for transcription
// ==UserScript==
// @name CSW-Enable-Browser-Spellcheck
// @namespace local crowdsurfwork
// @description CSW enable browser spellcheck for transcription
// @include https://ops.cielo24.com/mediatool/transcription/jobs/*
// @version 1
// @grant none
// ==/UserScript==
({
enable_spellcheck: function()
{
console.log('in enable browser spellcheck, document=', document);
let pte = $('#plaintext_edit');
pte.attr('spellcheck', 'true');
pte.attr('placeholder', 'Browser spellcheck is on');
pte.focus();
},
main : function()
{
let outer_this = this;
$(document).on('readystatechange', function() { outer_this.enable_spellcheck(); });
},
}).main();