Questions tagged [javascript]
Questions about usage of the Stack Exchange API in client-side browser JavaScript.
85 questions
3
votes
1
answer
337
views
What write in app access for sending data
Here is my app's code:
However, I get this error:
3
votes
1
answer
356
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 ...
1
vote
0
answers
49
views
Formattingalo: MORE formatting in Chat.SE!
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^^^
...
6
votes
0
answers
346
views
Question Dashboard (Greasemonkey Script)
Question Dashboard for stackoverflow.com (plus meta, serverfault and superuser) - page analyzed and indicators shown at the top of the question, just under the title, for key information.
Downloads:
...
263
votes
12
answers
23k
views
Obsolete - StackTack, a JavaScript widget you can stick anywhere
Screenshot / Code Snippet
<head>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script ...
5
votes
1
answer
281
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 ...
5
votes
1
answer
162
views
How can I implement a method to call the SE API that handles backoff correctly?
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 ...
5
votes
0
answers
94
views
Load Anonymous feedback
Access to anonymous and low-rep post feedback
This User script allows to view anonymous and low-rep post feedback/votes under the voting menu:
You can get it from GitHub:
Source Install
What is ...
2
votes
0
answers
99
views
Uncaught channelUrl must be under the current domain
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 ...
1
vote
0
answers
48
views
How to get write access to Stack Exchange API? [duplicate]
I am trying to use Stack Exchange API to post upvotes and downvotes from my app. I have received the access token but not sure what to do with write_access
3
votes
1
answer
84
views
Where is it acceptable to store an access_token?
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 ...
1
vote
0
answers
153
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 ...
5
votes
1
answer
644
views
Issue with JavaScript SDK
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 ...
6
votes
1
answer
293
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('...
0
votes
1
answer
189
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)
...
1
vote
1
answer
2k
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+'/...
2
votes
1
answer
126
views
Is there a way to increase the contrast of the special highlighting that is applied to the OP of a question?
EDIT: as you can see, the OP is now highlighted a bit more clearly, in 2021! But this may change, or someone might want a more striking contrast.
When the Original Poster of a question comments ...
2
votes
1
answer
1k
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;
}
...
6
votes
3
answers
94
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 ...
6
votes
0
answers
181
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 ...
4
votes
0
answers
213
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).
...
1
vote
1
answer
1k
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&...
2
votes
0
answers
335
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:...
0
votes
0
answers
83
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 ...
2
votes
0
answers
118
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 ...
1
vote
1
answer
292
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 ...
2
votes
0
answers
222
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 ...
1
vote
0
answers
303
views
OBSOLETE - StackOverflow Updater.. Update Questions without the refresh
Obsolete: App is long gone from the Chrome store. No source-code available. It was coded for a decommissioned version of the API anyway.
SOUpdater - UnRefresh! (1.2)
App
(Chrome-Extension)
...
3
votes
1
answer
344
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 ...
18
votes
3
answers
2k
views
OBSOLETE - Stack Insight - Track a User's Activity Over all Stack Sites
OBSOLETE - Site is dead. And domain has been un-hosted and/or parked since 2013.
Screenshots
About
Web application to show how all a user has been involve in the different stack sites over time.
...
6
votes
1
answer
249
views
OBSOLETE - StackAd Scroller
Screenshot
About
StackAd Scroller is a small web application that scrolls the open source ads from this Meta question. It is highly configurable and makes a nice page to leave your web browser open ...
16
votes
1
answer
895
views
OBSOLETE - StackAd - An Easy Way to Display Open-Source Ads on Your Site/Blog
Note:
This page is due for an update but until then you can add StackAd to your site by adding:
<script type='text/javascript'
src='http://files.quickmediasolutions.com/stackad/stackad.min....
25
votes
15
answers
3k
views
OBSOLETE - Soapi.JS : fluent JavaScript client library for the Stack Exchange API
OBSOLETE
This library uses the old API, and the soapi.info domain doesn't work anymore. There's still an archive on CodePlex.
Soapi.js
If you are looking for a full featured, compact JavaScript ...
23
votes
2
answers
994
views
VoteCounts: bookmarklet to display up/down votes even for rep less than 1000
Screenshot / Code Snippet
About
This small bookmarklet will allow anyone to use the "vulnerability" of the API that it allows you to check the up/down vote count - a feat you could normally achieve ...
12
votes
0
answers
401
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:
...
9
votes
0
answers
926
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 ...
41
votes
0
answers
3k
views
OBSOLETE - Stack Exchange Deleted Question Viewer
READ: THIS DOES NOT WORK. It has been broken by improvements in privilege enforcement. Sorry!
The only reason I haven't deleted this post is that it would be particularly cruel for people seeking a ...
1
vote
1
answer
238
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 ...
4
votes
1
answer
566
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: ...
2
votes
0
answers
224
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: ...
2
votes
0
answers
116
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 ...
12
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 ...
6
votes
1
answer
195
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 ...
21
votes
1
answer
343
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!
...
9
votes
1
answer
853
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 ...
13
votes
0
answers
2k
views
Stack.JS - Powerful Event-driven Library for Accessing the Stack Exchange API in JavaScript.
About
Stack.JS is the JavaScript equivalent of Stack.PHP and aims to replicate the request structure of that library as much as possible. The library is still a long ways from being complete but is ...
5
votes
0
answers
920
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 ...
5
votes
0
answers
429
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 ...
5
votes
0
answers
79
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://...
4
votes
0
answers
282
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 ...