Skip to main content

Questions tagged [javascript]

Questions about usage of the Stack Exchange API in client-side browser JavaScript.

Filter by
Sorted by
Tagged with
1 vote
0 answers
83 views

Screenshot / Code Snippet About This userscript allows you to underline your text, change the color, and even the size! Formatting guide Format Syntax Non-text parameters Notes Underline ^^^text^^^ ...
The Empty String Photographer's user avatar
5 votes
1 answer
195 views

I'm writing JavaScript (Node.js) code that calls the Stack Exchange API. One part of the API is that it may return a non-zero value for backoff, which essentially means "wait n seconds before ...
cocomac's user avatar
  • 518
2 votes
0 answers
126 views

I'm developing a Stack Chrome extension that will make use of the API. I'm following the instructions on the API docs here. My OAuth and host websites are set to stackexchange.com in my Stack Apps ...
Joe Moore's user avatar
  • 171
3 votes
1 answer
108 views

Obviously it isn't safe to broadcast any access_token to the public, especially those which are defined with no expiry date. It would also be considered a security issue if a list of registered access ...
Lakshya Raj's user avatar
5 votes
1 answer
724 views

When using the JavaScript SDK to enable client side OAuth flow, I'm running into this issue: Uncaught TypeError: Cannot read properties of null (reading 'postMessage') And the page gets stuck with the ...
Sourabh Choraria's user avatar
0 votes
1 answer
234 views

I'm trying to post a comment to The API Sandbox, I did one using the interactive documentation, but when trying to use my own code, it doesn't work. Instead, I get status code 405 (Method not allowed) ...
MrMythical's user avatar
1 vote
1 answer
4k views

This is related to my XYZ app to write comments. I found a much neater way to submit the request using forms: function post() { se_url='https://api.stackexchange.com/2.3/posts/'+se_postId.value+'/...
JMP's user avatar
  • 355
2 votes
1 answer
1k views

I can make a simple API call in JavaScript using XMLHttpRequest: <html> <script> function reqListener () { out.textContent=this.responseText; } ...
JMP's user avatar
  • 355
1 vote
0 answers
191 views

Note: last update at the end of POST I am developing an extension for community users. Introduction: The extension is under development on this github: https://github.com/IcarosNetSA/atsu and these ...
user avatar
6 votes
3 answers
140 views

Tab4SE Screenshot / Code Snippet About Uses SmartTabbing™ technology to enable Tabing (Indent) and Shift+Tabing (Unindent). Can be enabled via the toggle switch in the toolbar (preference is ...
Spectric's user avatar
  • 1,705
1 vote
1 answer
1k views

I'm using this code (in an async function): let about = await fetch("https://api.stackexchange.com/2.2/me?order=desc&access_token="+token+"&sort=reputation&site=gaming&...
Penguin's user avatar
  • 113
3 votes
1 answer
387 views

Here is my app's code: However, I get this error:
Никита Башенко's user avatar
2 votes
0 answers
127 views

About goal is to learn skills faster by browsing the aggregated concepts. so you absorb big ideas before diving in. learn passively. its for everyone. analyzes SE posts with IBM watson and allows ...
r2e2's user avatar
  • 21
6 votes
0 answers
198 views

Screenshot / Code Snippet About This script shows the number of current close votes, reopen votes and delete votes for a question. Works on all Stack Exchange sites. License GNU Lesser General Public ...
user avatar
1 vote
1 answer
321 views

When writing userscripts, I often want to be able to look at what Stack Exchange's Javascript is doing. Getting to the code that the browser runs is easy enough - in the Network tab, I can see network ...
CertainPerformance's user avatar
2 votes
0 answers
252 views

In principle that what Expand all comments script does, but with two major differences: Scrolls the page back to the initial target of the corresponding link you selected (i.e. to question, question ...
Gerold Broser's user avatar
2 votes
0 answers
358 views

I am using the JavaScript SDK to authenticate Stack Exchange users in our application. But the dialog stays in "Authorizing Application" page, as I found there is a error thrown in this page:...
Gary Liu's user avatar
  • 121
5 votes
1 answer
302 views

I was testing an app and suddenly I can't login any more. Neither my app or the Stack App configuration hasn't changed, so I'm thinking this might be a bug on the API side. The OAuth error seems a ...
gion_13's user avatar
  • 161
1 vote
1 answer
301 views

I want to write a userscript that modifies the share dialog to add an extra field: It's easy enough to retrieve and modify this dialog whilst it's on the page, but it gets added to the DOM only after ...
doppelgreener's user avatar
3 votes
1 answer
370 views

I am a noob at coding, so forgive me for this rather trivial question. I am trying to make a program that can access the Stack Exchange API. Specifically I want to make a program that gets live ...
Pritt Balagopal's user avatar
2 votes
0 answers
128 views

I'm developing an application that integrates with the Stack Exchange Network for posting questions and importing whole discussions. Therefore I'm looking for a JavaScript library for the Stack ...
RAGE Developer's user avatar
6 votes
1 answer
204 views

I'm using the JavaScript SDK by Stack Exchange provided with the latest API, and despite following the official instructions & examples it doesn't work - it seems there is a bug which breaks the ...
Mikhail Vink's user avatar
6 votes
0 answers
1k views

I am planning to write a javascript library as a wrapper over StackExchange API. Currently, every webapp using StackExchange api needs to compile the url and make a GET request (mostly by ajax) which ...
Sachin Jain's user avatar
22 votes
1 answer
377 views

New And Improved! I have rewritten the application and fixed a ton of bugs that were causing issues (and extremely high memory usage). If you ran into trouble before, give the new version a spin! ...
Nathan Osman's user avatar
  • 23.2k
2 votes
0 answers
240 views

Using the Stack Overflow javascript authentication API, I get this error: Application Login Failure An error occurred while login into an application. Error Details error description: could ...
Mahahari's user avatar
  • 129
9 votes
1 answer
913 views

I had a developer setup StackExchange auth for a site last year and that still works fine. I have cloned that site and am in the process of changing out all of the relevant names and keys to the new ...
Lizza's user avatar
  • 193
9 votes
0 answers
965 views

StackUnderflow StackUnderflow is Greasemonkey/Tampermonkey (or compatible) user script that aims to improve your experience with StackOverflow.com. Once it runs, you should easily notice additional ...
Marcin Orlowski's user avatar
5 votes
0 answers
472 views

Code Snippet sendMessage('chat.meta.stackexchange.com', 721, 'Hello @Sha', fkey().fkey) //Sends the message 'Hello @Sha' to Shadow's Den //Must be run in a chat site, due to @Balpha not wanting CORS ...
Universal Electricity's user avatar
5 votes
0 answers
93 views

Screenshot About It is my version of StackTack, which seems to be discontinued. License Inbox Reader is released under the Apache License 2.0. Download You can get QuestionPacker here: http://...
Universal Electricity's user avatar
4 votes
0 answers
303 views

Well your wishes have been fulfilled. Over on GitHub is a page ready designed for you to use! It's my SEAuthentication repro. What does it do? How does it work? The essential code is below. There is a ...
Tim's user avatar
  • 591
11 votes
0 answers
487 views

Stack Exchange chat has no API. While this is not a complete chat API, it introduces a level of control that makes it far easier to run chatbots. About ArtOfChatbot is a two-part creation: a basic ...
ArtOfCode's user avatar
  • 483
3 votes
1 answer
148 views

The following problem is REAL! All names have been changed to protect the innocent. I have a site at "http://Something.github.io/MyRepository/Directory/index.html" And I have my app configured like ...
Jack Sprat's user avatar
6 votes
1 answer
9k views

I am trying to experiment with the Stack Overflow API on my localhost and am struggling to get the authentication to complete. Here is my application JavaScript code (note that I am using IBM ...
MDalt's user avatar
  • 161
4 votes
0 answers
234 views

A dynamic flair for Stack Exchange sites inspired by Stack Exchange's native User Flairs. With Advanced Features Including Stack Exchange sites with more than 101 reputation (compared to 200). ...
Gerold Broser's user avatar
2 votes
1 answer
109 views

I'm writing an userscript that should add some functionality to the main textarea (WMD) used to post and edit answers and questions. The functionality will usually need to do things like insert text ...
Tomáš Zato's user avatar
4 votes
2 answers
204 views

This object seems to be available in all Stack Exchange pages and contains interesting information about the actual page, site, user, among others. Just type StackExchange on the console to check it ...
brasofilo's user avatar
  • 1,022
9 votes
3 answers
629 views

I find it annoying to have to type the entire list of Stack Exchange sites to include every single time I make a new userscript. Furthermore, jQuery isn't automatically included by default. Is there ...
Doorknob's user avatar
  • 1,329
4 votes
1 answer
592 views

I am trying to get started with the Javascript SDK. I am developing on a web server on my local machine. I get a channelUrl-related error when calling SE.init. My code: SE.init({ clientId: ...
joews's user avatar
  • 149
6 votes
1 answer
326 views

How I can connect my extension to the API? I tried to use this example code for connecting: SE.init({ clientId: 1, key: '?', channelUrl: '?', complete: function (data) { alert('...
Alex Saskevich's user avatar
3 votes
0 answers
124 views

About Don't like the hover animation on Arqade's mothership? You are probably an awful person, but here's a userscript anyway. Download I am an awful person and I hate lazers Platform Runs ...
fredley's user avatar
  • 1,359
4 votes
0 answers
383 views

Screenshot About AngularJS directive module for showing off your public StackOverflow activity. Works well with responsive frameworks including Bootstrap 3. Customizable templates and iconography. ...
Dan Kanze's user avatar
  • 141
3 votes
1 answer
5k views

When I am using this page for the Stack Exchange API /search path, I can see that it is generating time-stamps in this format: fromdate=1380326400&todate=1380412800 What is this date format? How ...
Sarath Saleem's user avatar
12 votes
0 answers
421 views

About StackBrowser allows you to explore the StackExchange network natively on Ubuntu Touch. Written in QML and JavaScript, it is mostly an excuse to play with the new Ubuntu SDK. Currently you can: ...
andrewsomething's user avatar
4 votes
0 answers
235 views

About This Greasemonkey script enables you to hide questions you don't want to see. At the moment Stack Overflow gives you the option to "dim" or hide questions with ignored-tags but doesn't allow ...
Precastic's user avatar
  • 141
2 votes
1 answer
351 views

I'm writing a user script and I want to hit the SE API for something, but SE.init is failing without much feedback indicating what the issue is. According to the documentation, it should be ...
Ben Collins's user avatar
7 votes
0 answers
785 views

Screenshot About I love the concept of instant search that Google introduced. Stack Overflow Instant Search does exactly that - it brings (almost) instant search to Stack Overflow. The results update ...
Siddhant's user avatar
  • 171
5 votes
1 answer
324 views

Suggestion Status is a small userscript which displays the status of your suggestions using color codes; , and yet to be reviewed. This allows you to immediately see the status of your suggestions, ...
user2428118's user avatar
6 votes
0 answers
156 views

This userscript adds a shortcut (CTRL+SHIFT+B) to beautify the selected JavaScript code using the same engine that also runs jsbeautifier.org. You can find the source on GitHub (feel free to fork, ...
ThiefMaster's user avatar
10 votes
0 answers
280 views

Screenshot About StackTack was originally listed here on Stack Apps. The idea was terrific and Soviut did such an awesome job building the application that I decided to fork it. My original intention ...
Nathan Osman's user avatar
  • 23.2k
4 votes
0 answers
308 views

Stack Tunnel Screenshots About StackTunnel is a WebGL visualization which displays the latest questions from any Stack Exchange site interactively within your web browser. You can click on the ...
Crashthatch's user avatar