last day (16 days later) » 

18:11
@terdon whoops.. my bad! I didn't think I had included them :/
Can you see anything in your console?
Hey, no worries, thanks for writing it!
@ᔕᖺᘎᕊ Hang on, let me check
Hmm, this looks promising:
chrome-extension://njbagbnhcnhgpgdnppijccoclbfjoanh/script.js:61 Uncaught ReferenceError: $ is not defined
That seems to refer to:
$('.comment-form').on('keydown', 'textarea', function (e) {
Shouldn't you be linking to jquery somewhere?
it seems jQuery isn't being recognized
Yeah, I don't see any mention of it in the script.
18:14
In chrome, that should just work if it's already included in the page
Can I ask which version of Chrome you have?
Anyway, to fix it, just add:
@ᔕᖺᘎᕊ Chromium 46.0.2490.80
On a 64bit Arch Linux install
@terdon weird... should work, but just do the above^^
just add that to the metadata block :)
Hopefully that will work... :)
@ᔕᖺᘎᕊ Nope:
Uncaught ReferenceError: $ is not defined(anonymous function) @ script.js:61(anonymous function) @ script.js:83
I shouldn't need to restart chrome for this, right? I just refreshed the page.
18:17
which site are you on??
And since I'm getting another error, that would suggest the change worked.
@ᔕᖺᘎᕊ meta.se, on the sandbox
365
Q: Formatting Sandbox

Ólafur Waage As per Jeff's suggestion in this comment: You can use this question as a formatting sandbox. You can edit this question itself (Community Wiki questions such as this one require 100 reputation to edit) post answers to this question (Since this question is protected, this requires earning 10...

I get the error on reloading the page so, presumably, the extension is being correctly matched by the stackexchange directive.
yeah, so the usersript is running...
Can you try:
var userscript = function($) {
   ///add all the code here
};
wrapping all the code with that^^
And then saying, at the bototm:
var el = document.createElement('script');
el.type = 'text/javascript';
el.text = '(' + userscript + ')(jQuery);';
document.head.appendChild(el);
6
A: Stack Exchange userscript template / boilerplate

Doorknobtemplate.user.js // ==UserScript== // @name Stack Exchange Userscript (Template) // @grant none // @match *://*.stackexchange.com/* // @match *://*.stackoverflow.com/* // @match *://*.superuser.com/* // @match *://*.serverfault.com/* // @match *://*.askubuntu.com/* // @match *://*.stackapps.com/...

like that^^
OK, hang on
@terdon
^^ just install that
I've changed it for you
:)
Hang on, that worked.
18:25
yay!
I'm not entirely sure it was needed though. It only worked after I restarted chrome so it might have worked before as well. Let me just check by removing it again.
Although it's weird (and I will be checking on that later), it worked! I will get back to you ASAP - but i've gtg right now. I will look into the problem in more depth when I get time and will ping you from this chat room - so don't delete it! :) Bye (for now :)
OK, yes, it was needed.
@ᔕᖺᘎᕊ Thanks, much appreciated! You have an MSE bounty heading your way :)
 
2 hours later…
20:54
@terdon thanks! :D
@terdon was that the wrapping of the code or the require statement?? :)

  last day (16 days later) »