Questions tagged [javascript]

Questions about JavaScript are generally OFF-TOPIC here. You might be able to find your answer at Stack Overflow.

Filter by
Sorted by
Tagged with
27
votes
2answers
2k views

How, exactly, does a Facebook worm work?

I initially had assumed that a FB friend of mine was spreading a malicious link because she had innocently accepted an app and given it privileges, but she says that's not the case. See the exchange: ...
19
votes
5answers
515 views

Where can I interactively play with jQuery and JavaScript? [closed]

I know there was website I once saw that permitted me to play interactively with JavaScript and jQuery. It had an IDE, a render pane and a result debugger thing too. Does anyone know what it was ...
5
votes
1answer
3k views

Link to no framed HTML in jsBin or jsFiddle

Is there a way in jsBin or jsFiddle to get a link to the page you created as is, without being embed inside a frame? If not, is there such service (something that would let me quickly create an HTML ...
4
votes
1answer
21k views

Sort Gmail by Date? [duplicate]

Possible Duplicate: Is it possible to sort your email in GMail by something other than the date received? Is there any way to sort Gmail by date in the web interface? The priority inbox is nice, ...
3
votes
3answers
777 views

Can Google Analytics track Javascript or .NET version usage?

I know that Google Analytics requires javascript to work, so I doubt it tracks that. But what about .NET version? Is there a way to view what .NET versions people are using on my site using Google ...
3
votes
1answer
46 views

Determining whether specified time is within 15mins of target time using Google Sheets scripting

I previously built this sheet in Excel in 2016 without scripting. I'm posting a similar question as I did back then, but this time I'm reconstructing the sheet in Google Sheets and automation is ...
3
votes
1answer
10k views

Unfriend multiple friends at once on Facebook

I'd really like to delete a large number of friends (~400) from my Facebook network and I'd really like to optimize this process. I found a greasemonkey script that will apparently help here: http://...
3
votes
1answer
157 views

Odd behaviour noticed with Gmail on different browsers

So I have my Gmail account open on two different browsers on the same computer (Chrome and Firefox). Now I was using the pop out chat feature of Google Talk embedded in the web page of my Chrome ...
3
votes
0answers
1k views

Create a script to block all followers on Twitter (except those that you follow)

Early last year Clayton Lambert posted a script on his blog which allowed you to automatically block users following you that were using the default Twitter profile image 'egg'. var unList = []; ...
2
votes
2answers
277 views

Javascript string() function in Google AdWords

Is there a simple way to implement the Javascript string() function in the basic Google AdWords interface? I want to pass some variables returned from a campaign management script to a spreadsheet (...
2
votes
1answer
908 views

Shortcut for clearing a column on Tweetdeck

I like to keep the queue of my tweetdeck columns clear, so I can quickly see what's new. So I clear each column after I've read it off. But it always takes three clicks on each column to clear it (1. ...
2
votes
0answers
172 views

How to pass a parameter allow= “geolocation” when embedding Google Apps Script in a Google site?

The target is to embed a Google Apps Script gadget into my Google site. The function of this script is to show a google map, determin the location of the client and center the map to the found ...
1
vote
1answer
4k views

Loop through all sheets, except for specific sheet names

I found the following code and want to use it to loop through all the sheets expect a few (that I don't want it to go through). My question is how can I edit this code in such a way that It does not ...
1
vote
1answer
153 views

How to get Google Account last activity info with more precision than a simple date?

Under Gmail page > Activity Information (low right hand corner) page, I can see: As per the last few rows, the information is certainly not helpful as they are accurate only to the day instead of ...
1
vote
1answer
1k views

Google Sheets casting cell value from Object to Number

One cell in a Google Sheets document holds a value given by a SUM of cells formatted as "elapsed hours":"elapsed minutes". Attempting to make calculations in a custom script on this cell will throw ...
1
vote
3answers
769 views

Keyboard Accessibility in Web Applications [closed]

I would put my question this way: We all know Keyboard is fast (as compare to Mouse). VIM is a simplest example for this. Is there any standard of creating web applications that are keyboard centric? ...
1
vote
1answer
675 views

How do I make a bookmark / favorite / weblink that opens a webpage in a small window? [closed]

How do I make a bookmark / favorite / weblink or command line command, that opens a webpage in a small window? For example, this page for BBC Radio 6 has a link for Listen Live, which opens the ...
1
vote
4answers
4k views

Online Stop Watch Using Pure Javascript and HTML and CSS ( No Flash!) [closed]

Is there an online stop watch that is constructed using pure Javascript, HTML and CSS, without using Flash? There are a couple of flash-based online stopwatch websites, but since I don't prefer ...
1
vote
1answer
699 views

Adjusted script to look for column header name, not the numeric representative of the column

From this discussion, I have a script that nicely updates a column's cell with the date another column's cell was changed. This works well because the TODAY() function always updates to today's actual ...
1
vote
2answers
37k views

How to tag all Facebook group members?

I'm an admin on a Facebook group, I would like to tag all group members to a post, how to do so? Does @group name work? I've seen on Youtube some bot software that claims to do that, but I don't ...
1
vote
1answer
4k views

How to add scripts to blog?

I want to add some source code in my blog in Blogger, so I did a search. In the website I found a similar question and in the solutions I found a solution: Copy the following code: <link href='...
1
vote
0answers
21 views

Google sheets script add data in next column

I'm trying to modify a script to create a PageSpeed report that pulls in certain KPI's from Google Pagespeed API. Once the data is received, i want it to place those KPI's next to the URL and so forth....
1
vote
3answers
55 views

Using a script to only take only take cells with values in google sheets

tl;dr how can I make the script take an entire column (eg A:A) and then ignore the first (header) row, and any blank rows? Background I have an array in Google Sheets with date-ordered data (note ...
1
vote
0answers
21 views

How to automatically load expandable contents on a JSON web page? [closed]

I use QuoDB to find useful examples from movie scripts. It seems like a JSON web page and I'm looking for a way to show the results expanded without having to click on every "context" button. Is there ...
1
vote
0answers
49 views

How can I add “complex” URL attachments to a card via Trello’s API?

On Trello's API documentation, it is said that an urlSource parameter can be included while creating cards. This can be found here. I'm testing the API with JavaScript. The problem is that Trello ...
1
vote
0answers
24 views

How to Get Data from Multiple Cells and Combine into a Comment in another cell

I have a spreadsheet of orders (rows) that has room for 70 products (columns). I would like for a script to find every cell that has a value (0's are blank) and then write that value (this is the qty ...
1
vote
1answer
1k views

Populate Form Element Values based on existing Rows in Google Sheets

I am trying to convert an Excel UserForm into Google Sheets where the user can create, update or delete entries in existing sheet based on the input form values. I started with selecting a value and ...
1
vote
0answers
114 views

How can I add linkable anchors to Markdown headers on my Tumblr?

I'd like Markdown headers, like thus, ### Important stuff! -> <h3>Important stuff!</h3> to compile with HTML id properties, so they can be linked directly to: ### ...
0
votes
3answers
113 views

LibraryThing: How do I tell the bug collectors that the site is completely broken? [closed]

First, most of the web page is completely broken when using HTTPS, because they're using the css.librarything.com and js.librarything.com domains to serve CSS and JavaScript (without which the site ...
0
votes
1answer
2k views

Viewer/parser to show all the Javascript in a web page? [closed]

I am looking for a tool (preferably a plugin to Firefox) that will show and parse all the JS in a page as I browse. UPDATE: Most tools focus on the HTML parser. I need good js parsing e.g. list of ...
0
votes
2answers
1k views

Where is Gmail's CSS?

I've been looking at view-source:mail.google.com/mail for a while, and can't seem to find GMail's CSS. Does anyone know where to find it? I'm wondering if all the script in it "obfuscates" where the ...
0
votes
3answers
519 views

Google Mail Access URL

I want to display my Google Apps mails on my website homepage, in a google gadget. So, I want to fetch all mails of my google apps account using javaScript. Is there any way to access mails ?
0
votes
3answers
645 views

A straw poll widget to add CNN-style polls on one's own website or blog [closed]

Wufoo.com is very nice (maybe overkill with the features) but it's missing one thing I really want for a simple straw poll: when you answer the straw poll question, the question itself should ...
0
votes
2answers
9k views

How to format the time in this Google Apps Script

I want to format a Google Sheet cell when I read it in my script but it comes out 25 minutes later. The cell's time is 20:00:00 but the output is 20:25. I am using this var formattedDate = Utilities....
0
votes
1answer
9 views

Is there a javascript bookmarklet to play all videos from a given video's channel on Youtube?

Quite often I fall on a youtube video I like, and am interested in seeing other videos from the same channel. I wanted a bookmarklet to reopen the video page with other videos from the same channel ...
0
votes
1answer
131 views

How do I make this Google Sheets Script faster

function getCellValue(){ var x=2; var y=2; var targetSheet1 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('Sheet1'); var targetSheet2 = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('...
0
votes
1answer
912 views

How to make Google Sheets jump to closest date to today when opened?

I have a Google sheet containing a list of events, with event dates listed in one column. I'd like to have my Google Sheets spreadsheet jump to the closest date to today's date on opening (i.e., ...
0
votes
1answer
613 views

How to Process Rows of Google Sheet Singly?

I have a google sheet with the following headers: | name | prop_id | number | street | city | state | zip | phone | first_name | last_name | email | |--------|:--------:|--------:|-------:|-----:|...
0
votes
0answers
9 views

Plan for building the web application

I want to build a web application. This is a website where you can register and play my poker game. When you sign up, you will automatically receive all starting chips that you can use. If this runs ...
0
votes
0answers
7 views

Is there an Instapaper bookmarklet for moving to folder?

I use Instapaper to share content on the web on social platforms automagically with IFTTT. It'd be great if I could use to share it to different pages/profiles using Instapaper folders. For that I'd ...
0
votes
0answers
15 views

Creating direct link to access document in shared (Office 365 / sharepoint) folder

I need a way to access the access the following file via one-click. https://websiteName.sharepoint.com/folder/subfolder/document.pdf I have a link for guest access to the subfolder containing the ...
0
votes
0answers
4 views

Require-context in React.js - getting file path dynamically [migrated]

I've been trying to set a file path as a variable, using require.context(). Require.context accepts three parameters: filepath, boolean if subfolders should be included and RegEx for file-name search ...
0
votes
1answer
40 views

How to get correct TimeZone in googlesheet using script?

I have wrote following script in my google sheet hoping to convert a timestamp in GMT to a customized timezone. function myFunctions(datetimeString,timeZone,format) { var moment = new Date(...
0
votes
1answer
33 views

How to timestamp on new added cells in LIVE google spreadsheet?

The code below insert timestamp in google sheet by editing another column. However, there an issue which I have no idea how to solve. When I add new row manually, it successfully adds timestamp, BUT ...
0
votes
1answer
23 views

Youtube player shortcut or extension to change to next higher or lower video resolution

I watch general videos on youtube at 720p and programming/ tutorial videos at 1080p I have searched a lot and its almost certain there is no keyboard shortcut to jump to the next higher/ lower video ...
0
votes
1answer
45 views

How to search multiple sites with Google and get random results?

I'm trying to find examples of English collocations in a set of sites. I know how to search in multiple sites as it's been solved here before. search term site:A OR site:B OR site:C The problem is ...
0
votes
0answers
135 views

Google apps script jdbc MySQL connection failure [closed]

I am attempting to connect to a hosted (not local) MySQL database using the Jdbc.getConnection method in Google apps script, but I'm repeatedly getting "failed to connect, check user name, password, ...
0
votes
0answers
49 views

URLFetch Being Called Too Often Google Sheets

I'm working on a google sheet for a calculator for a game. I have this script that automatically updates the price of a game item and I grab the API using URLFetch. However, every time I go to sleep ...
0
votes
0answers
10 views

Browser message alerts that open when you are in a diferent window [closed]

Facebook and other social apps show alerts for messages no matter what browser window I have open. This is different from standard JavaScript alerts, which only display when the user has that window ...
0
votes
1answer
47 views

Custom button or bookmarklet to toggle Conversation View On/Off

I'm trying to write a script that will add a button (or even use a bookmarklet) to toggle Conversation View on and off. This works, some of the time, to do the toggling: window.location.href = "...