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
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:
Никита Башенко's user avatar
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 ...
Sarath Saleem's user avatar
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 ...
Zhaph - Ben Duguid's user avatar
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 ...
Lakshya Raj's user avatar
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 ...
Jack Sprat's user avatar
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 ...
Pritt Balagopal's user avatar
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 ...
radius's user avatar
  • 473
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 ...
fredley's user avatar
  • 1,369
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 ...
Jeremy's user avatar
  • 781
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 ...
Stephen C's user avatar
  • 123
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; } ...
JMP's user avatar
  • 345
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 ...
Cerberus's user avatar
  • 123
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 ...
Tomáš Zato's user avatar
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 ...
Ben Collins's user avatar
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?
mihsathe's user avatar
  • 121
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....
Gelatin's user avatar
  • 796
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 ...
Joe Moore's user avatar
  • 171
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 ...
r2e2's user avatar
  • 21
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 ...
Gerold Broser's user avatar
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:...
Gary Liu's user avatar
  • 121
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 ...
RAGE Developer's user avatar
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: ...
Mahahari's user avatar
  • 129
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 ...
doppelgreener's user avatar
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+'/...
JMP's user avatar
  • 345
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 ...
CertainPerformance's user avatar
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 ...
Greg Bray's user avatar
  • 175
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&...
Penguin's user avatar
  • 113
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^^^ ...
The Empty String Photographer's user avatar
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
Sonal Varshney's user avatar
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 ...
user avatar
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 ...
fredley's user avatar
  • 1,369
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) ...
Ajai's user avatar
  • 119
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) ...
MrMythical's user avatar
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 ...
Vinicius Andrade's user avatar

1
2