Fix bug with comment boxes

This commit is contained in:
Mariam Maarouf 2020-10-04 13:39:23 +02:00
parent cb60d3351b
commit d8ba287dcd
2 changed files with 19 additions and 17 deletions

View File

@ -74,8 +74,9 @@ const replaceText = (textNode, input_word, replace_value) => {
function walk(node, v, p){
// I stole this function from here:
// I stole the base to this function from here:
// http://is.gd/mwZp7E
if (node.contentEditable != 'true' && node.type != 'textarea' && node.type != 'input') {
var child, next;
switch (node.nodeType){
case 1: // Element
@ -93,6 +94,7 @@ function walk(node, v, p){
break;
}
}
}
replaceAll()
observeChanges()

View File

@ -3,7 +3,7 @@
"manifest_version": 2,
"name": "InteractiveFics",
"author": "mariamrf",
"version": "5.1.0",
"version": "5.1.1",
"description": "Replaces Y/N & other variables in Reader Insert/second person fics with words of your choice.",
"browser_action": {
"default_title": "InteractiveFics",