5 votes
Accepted

Getting "application not configured for implicit grants" error trying to setup website

Yes, it can be annoying that the API docs, the javascript SDK, and the settings pages use the terms: "Explicit" "Implicit" "Server side" "Client side" a little interchangeably. (The first 2 are ...
Brock Adams's user avatar
  • 12.8k
4 votes

sechatr - adding Hangouts-style avatars to chat

What Gets Sent Madara Uchiha posted a comment asking about what information was being tracked. This answer should help clarify what's going on. The Client When the script sends a message to the ...
Nathan Osman's user avatar
  • 23.3k
4 votes

Tab4SE - the TAB key in your post

bug After I have installed this userscript, I got the menu toolbar empty: Also I have got this in the console: jQuery.Deferred exception: t.find(...).unadornedButtonClick is not a function c@https://...
Kevin M. Mansour's user avatar
3 votes
Accepted

Why doesn't my XMLHttpRequest call work in Excel?

The response from Stack Exchange is always compressed, as indicated by Glorfindel. Note that browsers offer the decompression to you by default but the MSXML2.serverXMLHTTP COM/OLE component pre-dates ...
rene's user avatar
  • 2,275
3 votes
Accepted

Where is it acceptable to store an access_token?

localStorage and cookies are both fine. Those are storage locations only accessible for the current domain and current user on their device. If an attacker has already access to the device all bets ...
rene's user avatar
  • 2,275
3 votes

Help with javascript SDK configuration

Of course as soon as I finally break down and ask a question I see my mistake: Applications that have the client side flow enabled can use https://stackexchange.com/oauth/login_success as their ...
Jack Sprat's user avatar
3 votes

Stack Exchange API in Chrome extension

I've built an extension that uses StackExchange API using OAuth2 flow. I did not use the JS SDK and did it manually instead. Here is how I did it: function auth(sendResponse) { const scope = '...
mmohammad's user avatar
  • 141
3 votes
Accepted

How should I try to detect when the Share dialog is open in a userscript?

Instead of polling for it, you can use a MutationObserver which exists for this exact thing: var observer = new MutationObserver(function(mutations, observer) { for (var i = 0; i < mutations....
ᔕᖺᘎᕊ's user avatar
  • 4,365
3 votes

What write in app access for sending data

From the documentation: Apps must have a registered Stack Apps post to write. The next sentence (about links pointing back) is no longer true, but the one after that is right and important too: You ...
Glorfindel's user avatar
  • 6,467
2 votes

How to analyze and debug Stack Exchange's Javascript?

Luckily for us, Stack Exchange's unminified Javascript is available on dev.stackoverflow.com. When you have a filename of the script you want to unminify (eg, from the network tab, you see https://cdn....
CertainPerformance's user avatar
2 votes

How do I actually begin to code, in Node, using the Stack Exchange API?

There is an example of how to invoke the constructor here: // app/src/resolvers.js const stackexchange = require('stackexchange-node'); const config = require('../config/config'); const options = {...
Paul Sweatte's user avatar
2 votes
Accepted

Getting 405 when trying to post a comment

The problem was the fact that I was using the http module, rather than https. Since its protocol is https, I have to use the https module const https = require("https") const data = `site=...
MrMythical's user avatar
2 votes
Accepted

Is it possible to get the response from a form POST?

The problem you are experiencing is a standardized default behavior of <form> elements. When a form is submitted, under normal circumstances, navigation happens as one of the last steps of ...
Oleg Valter is with Ukraine's user avatar
2 votes

Tab4SE - the TAB key in your post

feature-request Could we enable this userscript in the edit page? When I try to edit anything (either question or answer), I don't see the option to turn on/off. Here is an example: I am not sure if ...
Kevin M. Mansour's user avatar
1 vote

Tab4SE - the TAB key in your post

bug status-completed Fixed in version 1.2. It doesn't work on Firefox with Windows 10, there is no option in the text box: I tried version 1.0 also. On closer inspection, I saw an error in the ...
Anonymous's user avatar
  • 459
1 vote
Accepted

Why am I getting a 400 Bad Request error with this code?

An access_token is not enough; you need to specify a value for key as well. You can find it in the entry for your app here, this is how it looks like for one of mine: I'm not sure how it works in ...
Glorfindel's user avatar
  • 6,467

Only top scored, non community-wiki answers of a minimum length are eligible