Questions tagged [javascript]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
88 views

Getting 405 when trying to post a comment

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) ...
user avatar
1 vote
1 answer
55 views

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

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+'/...
user avatar
  • 323
2 votes
1 answer
136 views

Why doesn't my XMLHttpRequest call work in Excel?

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

Extension; Access to layout and javascript of stackexchange network site instead of inject (Stacks is not defined)

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
5 votes
3 answers
71 views

Tab4SE - the TAB key in your post

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 ...
user avatar
  • 1,439
1 vote
1 answer
99 views

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

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&...
user avatar
  • 113
1 vote
1 answer
213 views

What write in app access for sending data

Here is my app's code: However, I get this error:
user avatar
1 vote
0 answers
101 views

DAO.af browsable aggregated tags

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 ...
user avatar
  • 11
8 votes
0 answers
136 views

View close votes, reopen votes, and delete votes with insufficient repuation

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
174 views

How to analyze and debug Stack Exchange's Javascript?

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 ...
user avatar
1 vote
0 answers
133 views

StackExchange – Expand Hidden Comments

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 ...
user avatar
2 votes
0 answers
227 views

window.opener is null in Stack Exchange login_success page

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:...
user avatar
  • 121
0 votes
0 answers
58 views

Error invalid_request "OAuth request must be over HTTPS" when starting oauth flow

I'm building an application on top of StackExchange's API for a month now. While I was building the OAuth flow to allow users to authenticate using their StackExchange account, everything was working ...
user avatar
5 votes
1 answer
162 views

Cannot authenticate with OAuth2

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 ...
user avatar
  • 151
3 votes
1 answer
503 views

JSChat, a chatbot library

This project is now abandoned. No support is given. What is JSChat? JSChat is a library to quickly build a chatbot, that can run in a userscript. How does it work? It works by parsing the chat DOM, ...
user avatar
1 vote
1 answer
72 views

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

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 ...
user avatar
3 votes
1 answer
293 views

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

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 ...
user avatar
2 votes
0 answers
110 views

JavaScript API Library for StackExchange API?

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 ...
user avatar
6 votes
1 answer
171 views

JavaScript SDK-based workflow never pushes message back from OAuth login_success page on Stack Exchange side

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 ...
user avatar
4 votes
0 answers
589 views

StackExchange API JS SDk

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 ...
user avatar
  • 863
20 votes
1 answer
318 views

sechatr - adding Hangouts-style avatars to chat

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! ...
user avatar
  • 22.8k
2 votes
0 answers
211 views

Stackoverflow Javascript Authentication error

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: ...
user avatar
  • 129
9 votes
1 answer
705 views

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

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 ...
user avatar
  • 193
9 votes
0 answers
769 views

StackUnderflow - Greasemonkey/Tampermonkey helper for StackOverflow users

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 ...
user avatar
5 votes
0 answers
315 views

ChatExchange - It is an API for Chat

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 ...
user avatar
5 votes
0 answers
66 views

QuestionPacker - Packs Question in a Webpage

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://...
user avatar
4 votes
0 answers
224 views

Want a way to give your user the access token nicely?

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 ...
user avatar
  • 561
11 votes
0 answers
413 views

ArtOfChatbot + Chat API - a customisable chatbot

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 ...
user avatar
  • 473
3 votes
1 answer
109 views

Help with javascript SDK configuration

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 ...
user avatar
6 votes
1 answer
8k views

'The target origin provided does not match the recipient window's origin' message when trying to use localhost

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 ...
user avatar
  • 161
3 votes
0 answers
171 views

IGB Stack Flair – A dynamic flair for Stack Exchange sites

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). ...
user avatar
2 votes
1 answer
51 views

Is there any API or documentation that would help my adding functionality to Q&A textareas?

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 ...
user avatar
4 votes
2 answers
151 views

How to use the StackExchange object on a userscript?

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 ...
user avatar
  • 952
9 votes
3 answers
478 views

Stack Exchange userscript template / boilerplate

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 ...
user avatar
  • 1,269
4 votes
1 answer
543 views

Javascript SDK channelUrl for local development [duplicate]

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: ...
user avatar
  • 149
5 votes
0 answers
189 views

Stack Exchange API in Chrome extension

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('...
user avatar
3 votes
0 answers
112 views

I am an awful person and I hate lazers

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 ...
user avatar
  • 1,349
1 vote
0 answers
93 views

Banana Stand: Hide the green

Don't like your green rep notifications? Hide them completely with Banana Stand: Banana Stand User Script Download Link Alternatively, make the less intrusive with Banana Stand Lite: Banana Stand ...
user avatar
  • 1,349
3 votes
0 answers
359 views

Angular StackOverflow Activity, a module for showing off your public activity

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

How to convert a (javascript) date to the API timestamp format?

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 ...
user avatar
12 votes
0 answers
368 views

StackBrowser for Ubuntu Touch

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: ...
user avatar
4 votes
0 answers
197 views

Hide unwanted questions (Greasemonkey Script)

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 ...
user avatar
  • 141
2 votes
1 answer
261 views

Javascript SDK init fails on sytax error...why?

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 ...
user avatar
6 votes
0 answers
734 views

Stack Overflow Instant Search

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 ...
user avatar
  • 161
5 votes
1 answer
269 views

Suggestion Status - a userscript to view the status of your suggested edits

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, ...
user avatar
6 votes
0 answers
130 views

JSBeautifier shortcut

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, ...
user avatar
9 votes
0 answers
234 views

StackTack - George Edison Remix (now with a few extra features!)

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 ...
user avatar
  • 22.8k
3 votes
0 answers
198 views

StackScraper - export questions as JSON or HTML

About StackScraper is a user script that adds HTML and JSON export options to each question. The JSON loosely resembles the API format and includes the HTML and markdown bodies of all posts, as well ...
user avatar
  • 1
3 votes
0 answers
266 views

Stack Tunnel - WebGL Visualization for Stack Exchange

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 ...
user avatar
11 votes
1 answer
1k views

ThirdPlace JavaScript chat library

Screenshot / Code Snippet var room = ThirdPlace.Room.GetCurrentRoom(); var message = new ThirdPlace.Message; message.room_id = room.id; message.content = "ThirdPlace.js is a library which abstracts ...
user avatar
  • 543