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://...
Ghost's user avatar
  • 473
4 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,762
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
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,492
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,492
2 votes

How can I implement a method to call the SE API that handles backoff correctly?

I think a simple singleton that keeps track of the backoff should be enough. I assume you do use the fetch API or any other async capable module. But the approach is also feasible with just Promises ...
rene's user avatar
  • 2,492
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 ...
Ghost's user avatar
  • 473
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

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
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
  • 479
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,762
1 vote

Cannot authenticate with OAuth2

I don't know if this is an actual answer to the original issue, but it seems to be working fine now. You can test by clicking on the button in the doc page: https://api.stackexchange.com/docs/js-lib#...
gion_13's user avatar
  • 161

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