Questions tagged [javascript]
Questions about usage of the Stack Exchange API in client-side browser JavaScript.
84 questions
3
votes
1
answer
338
views
What write in app access for sending data
Here is my app's code:
However, I get this error:
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 ...
3
votes
1
answer
417
views
How do I get a GreaseMonkey/UserScript to interact with the Live Preview?
I've converted a script that I hope to get embedded on a StackExchange site (Lego Answers) to a GreaseMonkey/Userscript but I'd like to get it interacting with the live preview when creating or ...
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 ...
3
votes
1
answer
124
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 ...
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 ...
3
votes
1
answer
353
views
Web SENotify - Stack Exchange website new question notification
Screenshot
About
This website is a notification tool of new question on Stack Exchange website.
License
Public Domain
Download
Download http://senotify.jeb.be/ content (html, css, js from)
Platform
...
3
votes
0
answers
115
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 ...
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 ...
2
votes
2
answers
898
views
Is something filtering 'document.cookie' in SO pages?
My colleague and I are developing an annotation tool for web resources. One way The user can us the tool is to click a special bookmarklet to view the current page with annotations added. The ...
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;
}
...
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
76
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 ...
2
votes
1
answer
291
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 ...
2
votes
1
answer
239
views
Using the API directly from JavaScript
Is there any way I can use the API directly from JavaScript without any Server side proxy? I know of the inter-domain restrictions, but can we do it somehow in case of facebook API right?
2
votes
1
answer
322
views
Best way to calculate total badge count in Javascript?
I'm using Javascript and JSONP and want to find-out a user's total badge-count (i'm not using any libraries).
At first I naively added up the badge counts individually, but some user's have no badges....
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 ...
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 ...
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 ...
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:...
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 ...
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: ...
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 ...
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+'/...
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 ...
1
vote
1
answer
385
views
How to use the stackapps API from JavaScript with XMLHttpRequest or XDomainRequest?
I had an idea for an app that required calling the stackapps API from JavaScript, but when I started prototyping it I quickly found out that the API does not allow cross origin requests. This means ...
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&...
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^^^
...
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
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 ...
1
vote
0
answers
98
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 ...
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)
...
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)
...
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 ...