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
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
3 votes
1 answer
438 views

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
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
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
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
3 votes
1 answer
371 views

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
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
2 votes
2 answers
930 views

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

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

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
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
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
2 votes
1 answer
253 views

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

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
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
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
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
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
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
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
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
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
1 vote
1 answer
403 views

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

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
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
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
1 vote
0 answers
313 views

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