Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 4:48 Joeytje50 what do the instructions tell you exactly
- 4:48 Joeytje50 explain to me
- 4:48 Dogfoger Thats the thing
- 4:48 Joeytje50 as if I'd not understand it
- 4:48 Dogfoger I don't understand it at all
- 4:48 Dogfoger This is what I see
- 4:48 Joeytje50 read it again
- 4:49 Dogfoger /* Script to beep when people say your name, or bad words. This is helpful to notice people saying your name, or to notice spammers or trolls. To import this script, add the following to your /chat.js page:
- 4:49 Joeytje50 okay
- 4:49 Dogfoger var pings = 'phrase1|phrase2|etc'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username
- 4:49 Joeytje50 what does that say
- 4:49 Joeytje50 yes that's what it is
- 4:49 Joeytje50 now
- 4:49 Joeytje50 what does that say
- 4:49 Dogfoger Ehh
- 4:49 Dogfoger That I need to add those into chat?
- 4:50 Joeytje50 read it again
- 4:50 Dogfoger so i just type var pings = dogfoger
- 4:50 Joeytje50 read the first 2 lines and then "translate" it to your own words
- 4:50 Dogfoger I'm utterly confused joey
- 4:50 Joeytje50 I'm explaining it to you
- 4:50 Dogfoger I know
- 4:50 Joeytje50 read the first 2 lines and then "translate" it to your own words
- 4:50 Dogfoger Ur patience is admirable
- 4:51 Dogfoger But thats the thing
- 4:51 Dogfoger I cant because they make no sense
- 4:51 Dogfoger var pings = 'phrase1|phrase2|etc'; importScript('User:Joeytje50/chat-pings.js');
- 4:51 Joeytje50 no not that
- 4:51 Dogfoger Wut
- 4:51 Joeytje50 /* Script to beep when people say your name, or bad words. This is helpful to notice people saying your name, or to notice spammers or trolls. To import this script, add the following to your /chat.js page:
- 4:51 Joeytje50 translate that to your own words
- 4:51 Dogfoger No that makes sense
- 4:51 Dogfoger Thats english lol
- 4:51 Dogfoger But what does
- 4:51 Joeytje50 okay
- 4:51 Dogfoger /* mean
- 4:52 Joeytje50 that's a symbol to indicate it is a comment, else JavaScript treats it as script
- 4:52 Joeytje50 when reading it you can ignore that
- 4:52 Dogfoger Oh
- 4:52 Dogfoger Ok so now wut
- 4:52 Joeytje50 so explain to me what those 2 lines say
- 4:52 Dogfoger Their telling you what this thing does
- 4:53 Joeytje50 yup
- 4:53 Joeytje50 and the 2nd line?
- 4:53 Dogfoger Ok
- 4:53 Dogfoger Telling you how to mport it
- 4:53 Dogfoger Meaning how to make it work
- 4:53 Joeytje50 yup
- 4:53 Joeytje50 yup
- 4:53 Joeytje50 and, what does the 2nd line exactly tell you
- 4:54 Dogfoger That you need to put something into your chat page to import it
- 4:54 Dogfoger o.O
- 4:54 Joeytje50 yey
- 4:54 Joeytje50 and where does the script say that chat page is?
- 4:54 Dogfoger /chat.js
- 4:54 Joeytje50 yes
- 4:55 Joeytje50 User:Dogfoger/chat.js]
- 4:55 Dogfoger OHhhh!
- 4:55 Dogfoger Ok
- 4:55 Dogfoger So I need to
- 4:55 Dogfoger Create that page
- 4:55 Dogfoger then
- 4:55 Dogfoger put
- 4:55 Dogfoger var pings = 'phrase1|phrase2|etc'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username
- 4:55 Dogfoger Right?
- 4:56 Joeytje50 put the code given there on your /chat.js page, yes
- 4:56 Dogfoger Okk
- 4:56 Joeytje50 buttt....
- 4:56 Dogfoger Does it have to be in that order?
- 4:56 Joeytje50 yes
- 4:57 Joeytje50 you see var pings = 'phrase1|phrase2|etc'; there right?
- 4:57 Dogfoger Whats teh butttt for?
- 4:57 Dogfoger Yesh
- 4:57 Joeytje50 change the 'phrase1|phrase2|etc' to the phrases you want
- 4:57 Dogfoger Yesh
- 4:57 Dogfoger Ok
- 4:57 Joeytje50 for example, change the 'phrase1|phrase2|etc' to 'dogfoger|doggy|cake';
- 4:57 Dogfoger Now do i have to make it in list form?
- 4:57 Joeytje50 huh?
- 4:58 Dogfoger Do i have to make it like
- 4:58 Joeytje50 you need to make it the same format as in the example
- 4:58 Joeytje50 so the phrases seperated with |
- 4:58 Dogfoger var pings = 'phrase1|phrase2|etc'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username beeps text = badWordsBeep(text);//remove this line if you don't want bad words beeps
- 4:58 Dogfoger or can it be one long line
- 4:58 Joeytje50 you need to directly copy is
- 4:58 Joeytje50 it*
- 4:58 Joeytje50 then edit the ping phrases to the thing you want it to be
- 4:59 Dogfoger k
- 4:59 Joeytje50 did you do that?
- 5:00 Joeytje50 don't press save yet
- 5:01 Dogfoger Joey
- 5:01 Dogfoger text = unameBeep(text);//remove this line if you don't want username beeps
- 5:01 Dogfoger What does that mean
- 5:02 Joeytje50 the part of //remove this line if you don't want username beeps is a comment
- 5:02 Joeytje50 do you want to be beeped if someone says your username?
- 5:03 Dogfoger Yes
- 5:03 Dogfoger I do lol
- 5:03 Joeytje50 okay
- 5:04 Joeytje50 then don't remove that line
- 5:04 Dogfoger So I leave it how it is?
- 5:04 Joeytje50 that line, yes
- 5:04 Dogfoger Ive edited the var thing to wut I want
- 5:04 Joeytje50 yes
- 5:04 Joeytje50 then the next line you see text = badWordsBeep(text);//remove this line if you don't want bad words beeps
- 5:04 Joeytje50 do you want to be beeped for words that are inappropriate?
- 5:05 Dogfoger Yesh
- 5:06 Joeytje50 okay then leave that line as it is too
- 5:06 Dogfoger Sorry just finished off shadow before the storm
- 5:06 Joeytje50 okay what is the current code you have
- 5:06 Dogfoger var pings = 'Dogfoger|Yawns|Yawn|Waves|Wave|Dog|Doggy'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username beeps text = badWordsBeep(text);//remove this line if you don't want bad words beeps
- 5:06 Dogfoger o.O
- 5:06 Joeytje50 where is the part of return text; //DO NOT EDIT THIS LINE }
- 5:07 Dogfoger return text; //DO NOT EDIT THIS LINE
- 5:07 Dogfoger lol
- 5:07 Joeytje50 and the }
- 5:07 Dogfoger I have that on it
- 5:07 Joeytje50 okay
- 5:07 Dogfoger There is no }
- 5:07 Dogfoger
- 5:07 Joeytje50 there is
- 5:07 Joeytje50 add a } on a line below it then
- 5:07 Dogfoger Nop
- 5:07 Dogfoger K
- 5:08 Dogfoger Anywhere on the line?
- 5:08 Joeytje50 add a new line with just } on it below the line with return text; //DO NOT EDIT THIS LINE
- 5:08 Dogfoger K
- 5:08 Dogfoger Got it
- 5:08 Dogfoger Now wut
- 5:09 Dogfoger Save?
- 5:09 Joeytje50 yes
- 5:09 Dogfoger k
- 5:09 Dogfoger K done that
- 5:09 Dogfoger Now wut
- 5:10 Joeytje50 okay go back to the instructions on User:Joeytje50/chat-pings.js
- 5:10 Dogfoger Their on that page
- 5:10 Joeytje50 do you see any further instructions below the part you've got now
- 5:10 Dogfoger So must I clear cache againm
- 5:10 Dogfoger Yeah i have
- 5:10 Dogfoger Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: hold down the Ctrl key and click the Refresh or Reload button, or press Ctrl+F5. Firefox: hold down the Shift key while clicking Reload; alternatively press Ctrl+F5 or Ctrl-Shift-R. Opera users have to clear their caches through ToolsโPreferences.
- 5:10 Joeytje50 no below the instructions you've followed already
- 5:11 Dogfoger The var ones?
- 5:11 Joeytje50 no
- 5:11 Dogfoger Which ones
- 5:11 Joeytje50 do you see the part with Or just add badWordsBeep(text); or unameBeep(text); to the onchatmessage function, if you already defined the function.
- 5:11 Dogfoger No
- 5:11 Dogfoger Wait
- 5:11 Dogfoger Yes
- 5:12 Dogfoger Something like that
- 5:12 Joeytje50 okay
- 5:12 Joeytje50 now read the things below that
- 5:12 Dogfoger var pings = 'Dogfoger|Yawns|Yawn|Waves|Wave|Dog|Doggy'; importScript('User:Joeytje50/chat-pings.js'); onchatmessage = function(text, rawtext) { text = unameBeep(text);//remove this line if you don't want username beeps text = badWordsBeep(text);//remove this line if you don't want bad words beeps
- 5:12 Dogfoger Thats on my page atm
- 5:12 Joeytje50 yes okay
- 5:12 Dogfoger Along with instructions for restarting
- 5:12 Joeytje50 okay read
- 5:12 Joeytje50 Also, if you haven't imported User:Joeytje50/chatmsg.js you should add the following above this script's import: importScript('User:Joeytje50/chatmsg.js');
- 5:12 Joeytje50 do you have importScript('User:Joeytje50/chatmsg.js') on your /chat.js page anywhere?
- 5:13 Dogfoger yesh
- 5:13 Joeytje50 nop
- 5:13 Dogfoger wut
- 5:13 Joeytje50 it's /chatmsg.js
- 5:13 Joeytje50 not /chat-pings.js
- 5:13 Dogfoger Lewk
- 5:13 Dogfoger this is the page i created
- 5:13 Dogfoger User:Dogfoger/chat.js
- 5:14 Joeytje50 hm nvm about the last thing I said, I'll fix it in my script
- 5:14 Joeytje50 okay
- 5:14 Joeytje50 now press ctrl+shift+del
- 5:14 Joeytje50 clear your cache again
- 5:14 Dogfoger kk
- 5:14 Joeytje50 and refresh chat
- 5:14 Dogfoger Cleard
- 5:14 Dogfoger K
- 5:15 Joeytje50 refreshed?
- 5:15 Dogfoger Refreshed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement