Skip to content

Commit

Permalink
added more conditions to preserve grammar
Browse files Browse the repository at this point in the history
  • Loading branch information
ninjasmosa committed Aug 13, 2022
1 parent 232e84b commit 5be4a8b
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions He-She to They.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// ==UserScript==
// @name "He/She" to "They"
// @namespace https://ninjasmosa.com
// @version 0.1
// @description Turns any string that says "he/she" into "they". For the sake of gender inlcusivity.
// @namespace https://github.com/ninjasmosa/-He-She-to-They-
// @version 0.2
// @description Turns any string that says "he/she" into "they". For the sake of gender inclusivity.
// @author ninjasmosa
// @match *://*/*
// @grant none
Expand All @@ -12,10 +12,44 @@
'use strict';

// Your code here...
document.body.innerHTML = document.body.innerHTML.replace(/he or she is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/he\/she is/g, 'they are');

//she/he to they
document.body.innerHTML = document.body.innerHTML.replace(/she or he is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/she\/he is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/she or he/g, 'they');
document.body.innerHTML = document.body.innerHTML.replace(/she\/he/g, 'they');

//her/his to their
document.body.innerHTML = document.body.innerHTML.replace(/is her's or his/g, "is their's");
document.body.innerHTML = document.body.innerHTML.replace(/is her's\/his/g, "is their's");
document.body.innerHTML = document.body.innerHTML.replace(/her's or his/g, "their's");
document.body.innerHTML = document.body.innerHTML.replace(/her's\/his/g, "their's");
document.body.innerHTML = document.body.innerHTML.replace(/her or his/g, 'their');
document.body.innerHTML = document.body.innerHTML.replace(/her\/his/g, 'their');

//her/him to them
document.body.innerHTML = document.body.innerHTML.replace(/her or him is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/her\/him is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/her or him/g, 'them');
document.body.innerHTML = document.body.innerHTML.replace(/her\/him/g, 'them');

//his/her to their
document.body.innerHTML = document.body.innerHTML.replace(/is his or her's/g, "is their's");
document.body.innerHTML = document.body.innerHTML.replace(/is his\/her's/g, "is their's");
document.body.innerHTML = document.body.innerHTML.replace(/his or her's/g, "their's");
document.body.innerHTML = document.body.innerHTML.replace(/his\/her's/g, "their's");
document.body.innerHTML = document.body.innerHTML.replace(/his or her/g, 'their');
document.body.innerHTML = document.body.innerHTML.replace(/his\/her/g, 'their');

//he/she to they
document.body.innerHTML = document.body.innerHTML.replace(/he or she is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/he\/she is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/he or she/g, 'they');
document.body.innerHTML = document.body.innerHTML.replace(/he\/she/g, 'they');

//him/her to them
document.body.innerHTML = document.body.innerHTML.replace(/him or her is/g, "they are");
document.body.innerHTML = document.body.innerHTML.replace(/him\/her is/g, 'they are');
document.body.innerHTML = document.body.innerHTML.replace(/him or her/g, 'them');
document.body.innerHTML = document.body.innerHTML.replace(/him\/her/g, 'them');
})();

0 comments on commit 5be4a8b

Please sign in to comment.