/    Sign up×
Community /Pin to ProfileBookmark

How to mask unwanted words in the site?

I know a little bit of JS Codding but I have no idea how to mask words or numbers for selected site? For ex. [url]www.examplecode.exm[/url]
Containing words: sh*t or pe*. I don’t want see those words. How can I make .js file which changes those words into for ex. Flower and water? Or 100 into 50? They won’t change sites content but only my clientside browser’s perception to those words!

I just need some ideas and suggestions? ?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@ZABISep 29.2012 — text="it Works ?";

var emoticons = {

':-)' : 'smile1.gif',

'?' : 'smile2.gif',

'?' : 'smile3.gif',

':-|' : 'smile4.gif'

};

for ( smile in emoticons )

{

text = text.replace(smile, '<img src="smilies/' + emoticons[smile] + '" />');

}

document.write(text);
×

Success!

Help @Sumaheris spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...