Questions tagged [javascript]

JavaScript is a programming language. Programming questions are off topic here; ask on Stack Overflow instead.

Filter by
Sorted by
Tagged with
1
vote
0answers
8 views

Is there anyway to get the nearest element to the cursor? [migrated]

Say I have a bunch of <p> tags, I want to get the value of the <p> tag nearest to the current cursor position, how can I do so? I have searched alot about this topic but coudln't find ...
0
votes
0answers
19 views

“Secure Connection Failed” With all browsers on a single javascript resource

I'm trying to access the website of my university, but I'm getting this problem with every single browser, and it's only affecting a single javascript file hosted on that server. Just to be clear, I ...
-2
votes
0answers
11 views

How can i make a border with CSS inside a square [closed]

The code looks like this: <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style> * { box-sizing:...
0
votes
0answers
17 views

TypeScript Compiler doesn't delete files I deleted

Folders and files I deleted in my TypeScript codes are not deleted by TypeScript Compiler. I shared the folder structure of my project below. Pay attention to the src/events folder and thedist/events ...
0
votes
0answers
11 views

Scripting chrome picture-in-picture [migrated]

I'm interested in automating chrome's picture-in-picture video functionality, from javascript or applescript. When media is playing, the media menu contains pause buttons and pop-out (picture in ...
1
vote
1answer
97 views

How do I install or use NPM in Windows Subsystem for Linux?

I have the following error when I try to run my node.js project: ENV@ENV-L7490:/mnt/c/Users/ENV/source/Project$ npm i : not foundram Files/nodejs/npm: 3: : not foundram Files/nodejs/npm: 5: /mnt/c/...
-1
votes
1answer
24 views

Is there any particular way to set up files for Web Development? [closed]

I've been working in...studying...Web Dev for about four years and I'm wondering if there is a particular file structure that's beneficial. Example, I noticed one individual had a DEV folder directly ...
0
votes
1answer
150 views

open a folder in windows Explorer from html

I write a personal web app to sort my book , film , file , ... . It is just for my use and will not run on server , I wants to write some code in it that for example if I open a book in browser I can ...
0
votes
0answers
14 views

Acrobat Custom Command to edit multiple form field formats

Due to the fact that when editing multiple forms fields in Acrobat DC you cant change the Format (eg. from none to number), is there a simple actionscript/Custom Command that could be set up to run in ...
0
votes
0answers
134 views

Content Security Policy: The page’s settings blocked the loading of a resource at inline (“script-src”) Error on a lot of different websites

Since a couple of days ago, i cannot reach a lot of Well-Known Websites like : Github.com,linkedIn,... . I am using Firefox 81.0.1. when i open console, in found this error line: Content Security ...
0
votes
1answer
27 views

Is it possible to set keyboard shortcuts for a video streaming website like Youtube?

Youtube already offers a list of keyboard shortcuts. What if I want to set a different shortcut, for example, ctrl+shift+p for Pause/Play? Can I use a Javascript library like Mousetrap for the purpose?...
0
votes
1answer
9 views

Is it possible to invert the onmousehover behaviour in a browser?

Is it possible to modify in some way (by adding stylesheets, injecting JS, or whatever) the behaviour of a browser so that in a web page fully loaded it inverts its processing regarding onmousehover ...
0
votes
0answers
167 views

wkhtmltopdf 0.12.6 does not load javascript

I'm making a html to PDF converter using wkhtmltopdf, in the html I use https: //www.mathjax.org/ to display mathematical formulas *. I'm encountering several problems: Use Ubuntu 18.04, If installed ...
2
votes
0answers
14 views

Which JavaScript file holds .ts URLs

Some videos embedded in webpages segment the video into media files with a .ts extension. These files are loaded on-demand to reduce lag. You can see this then "inspecting" a webpage and ...
0
votes
0answers
42 views

How to block javascript based popups/new tabs in chrome?

I use ublock origin addon on chrome. However, I have problems with sites which are ad lovers. when i enter those , they auto open new tab which is directed to ad site, or even worse new window of ...
0
votes
1answer
30 views

Odd results in IEEE

Firstly, I apologize if this is the wrong Stack, but I guess my fellow Geeks here might find this interesting .. I was looking for the IEEE 754 documents on the IEEE website, Binged it first, and used ...
0
votes
0answers
14 views

Can wimpy buttons use another MP3 player besides Flash?

Is there a way to get wimpy buttons to use an MP3 player other than flash, which has been discontinued? I tried adding the disableFlash option to the JavaScript code but that wasn't sufficient. I have ...
0
votes
1answer
64 views

How to call garbage collect on firefox?

I wonder if someone could guide me on some questions about GC on firefox. Is possible to call the action performed when I click on the button GC using javascript? https://i.stack.imgur.com/JgoNx.png ...
0
votes
1answer
117 views

Display a tooltip onmouseover in Inkscape-generated image

I'd like a tooltip with some text to be displayed when mouse is over some graphical element in a media I create with Inkscape, ideally a PDF, but I could use an SVG. I believe this is possible, since ...
0
votes
1answer
21 views

Can Chrome open shortcuts in the same instance/tab?

I have a bookmark that executes javascript code, and I want to make a shortcut to it so that I can assign a hotkey to it, but when I do that, chrome launches a new tab with the bookmark/javascript ...
0
votes
0answers
27 views

Slow script performance when browser is minimized

Im running a javascript in the Chrome DevTools console, but when I minimize the browser the script runs 10x(?) slower. I searched on chrome://flags for throttling and it returned: https://i.imgur.com/...
0
votes
1answer
119 views

How to download Embedded PDF from this website with Pdfviewer.js

with free signing-in in this website, you can view a pdf really useful for med school. https://www.accademiamedici.it/manuale-del-neoabilitato I cannot download it because it's embedded and uses a ...
0
votes
1answer
35 views

Javascript links to embedded documents in PDF with linux

I have received a PDF file which embeds (hundreds of) documents, which I can access directly using the "Embedded files" function in okular (but I have not found an equivalent in evince): ...
0
votes
0answers
27 views

Original Google Sheet recognized by JS. Copy not recognized

I have a working Google Sheet JSON search engine here: https://codepen.io/Teeke/pen/gOwgvXQ?editors=0011 It reads this Google sheet: https://docs.google.com/spreadsheets/d/1c2aJmDdLkbjW0ErfUB0sfiQ-...
0
votes
0answers
23 views

JavaScriptCore: Run batch file without opening another console

So, i'm trying to use JavaScriptCore in the console with JSC.exe, but how we can run Batch files in JavaScriptCore without opening a new console? I tried: import System; import System.IO; var WS = ...
1
vote
1answer
503 views

Make VSCode Default Editor For Files In FileZilla

A very frustrating issue that I've tried to fix many times. I'm trying to open a file from FileZilla directly in VSCode, so that when I save the file in Code, the changes are automatically updated via ...
1
vote
1answer
123 views

How can I add JavaScript to my URL as a parameter?

I saw it mentioned here: Google Chrome (Mac) set keyboard focus from address bar back to page One way to get around not being able to move the focus from the search bar was to add JavaScript as a ...
0
votes
0answers
13 views

Webstorm gives incorrect suggestions

I want to use Webstorm to work with a project in React. As I understand it, Webstorm is able to give the user hints to reduce the time of his work. It offers incorrect hints: The problem is - all of ...
0
votes
0answers
11 views

Google Chrome freezes when I download files at a rapid rate

I am working on a physics simulation in WebGL + JavaScript that I execute on Google Chrome. The simulation takes multiple snapshots of the canvas and saves them in the downloads folder as .png images. ...
2
votes
1answer
287 views

Don't let websites overwrite clipboard in Firefox without explicitly giving permission

Apparently websites can overwrite the clipboard using the JavaScript Clipboard API without any notification to the user — as discussed in this Reddit thread — which is a little scary. Is there a way ...
0
votes
2answers
83 views

Disabling Java Script in all Firefox tabs but the current one

I am running Firefox 81 under Ubuntu 20 LTS. I need (like) to have huge number of tabs open. The problem is that JavaScript in all these background tabs is still running which adds up sometimes to 40% ...
0
votes
0answers
35 views

Editing a video in the browser

I was given a job to edit a video by adding text to a particular frame on the browser. I wanted to use ffmpeg to split the video into frames and edit that particular frame with jimp.js but I got ...
0
votes
0answers
13 views

JavaScript code is not allowed to load by Squid Proxy server

Squid Proxy server is not allowing me to load the JavaScript file from some website. Details are: Host Server: Linux localhost 4.4.0-190-generic #220-Ubuntu SMP Fri Aug 28 23:02:15 UTC 2020 x86_64 ...
0
votes
0answers
37 views

Is there a way to pause or turn off individual code completions for sublime text editor 3

I currently have a plethora or plugins installed for sublime text editor, but I was wondering if there is a way to turn off[Not Uninstall] various different code completions, so If i am working on Js ...
0
votes
1answer
16 views

Download older version of browsers as a developer

I need to test a feature on Chromium 38 engine. Where can I get the specific version of any browser that use this specific engine. I wonder, how developers handle this kind of scenario. If the ...
0
votes
0answers
16 views

Could I intercept my browser's request and give it a response of my own?

I'm practicing some hackery for my own hobby and I'm using my own browser as a playground. What I'm trying to accomplish is that I want to visit a website, which of course loads a bunch of html, ...
0
votes
0answers
35 views

Overflow behaviors differ in Chrome when rotating 90 degrees clockwise/counterclockwise

When rotating 90 degrees counterclockwise, horizontal scrollbar works fine. transform-origin: right top; top: 0px; left: -100vh; height: 100vw; width: 100vh; transform: rotate(270deg); position: ...
0
votes
0answers
18 views

How to display serverside statistics on a webpage (e.g. CPU, RAM etc)?

I've seen it done on quite a few sites - one example is videoedit.bot - where they display, on their web page, the cpu, ram and storage usage (note: I'm referring to serverside statistics, not client ...
0
votes
1answer
529 views

Disable JavaScript in Acrobat Reader for good

For security reasons, I want to disable JavaScript in Acrobat Reader DC in my office. I found a registry key (HKCU\Software\Adobe\Acrobat Reader\DC\JSPrefs\bEnableJS) that I can deploy via Group ...
0
votes
0answers
61 views

Hyper Terminal, “A javascript Error occurred in main process ”

Im using Mac OS Catalina and when I tried to install Hyper Terminal its showing A javascript Error occurs in main process. I tried finding application support in library and the hyper folder is ...
1
vote
0answers
1k views

Chrome refuses to display iframe, but other browsers do

I want to display a web page within a frame. This page has a redirect in front of it, that navigates to another web page for authentication. This other page doesn't allow its content to be displayed ...
0
votes
0answers
83 views

Auto-create bookmark by number of pages listed in Excel

I have a 2,000ish page PDF that I need to split into about 400 smaller PDFs each with various numbers of pages. I'm tracking the number of pages for each split, and the beginning page number and last ...
2
votes
1answer
51 views

Unable to negate a regex in markup

I need to validate that a string should not contain po box and should not contain special characters(only hyphen,comma and space are accepted). So, I came up with the regex : /^(?!.*(?:(.*((p|post)[-.\...
0
votes
0answers
26 views

I'm looking for a auto refresher which refresh after page load

I'm looking for a auto refresher, but it shouldn't work on time intervals. It needs to reload every time after the page loads. Is there any thing that would work? Thanks.
0
votes
0answers
17 views

MediaWiki:Common.js javascript code is never loaded

I'm trying to add some javascript code on all mediawiki pages. I have MediaWiki 1.31.7 installed from the Debian 10 official repos. I followed this guide: https://www.mediawiki.org/wiki/...
56
votes
6answers
8k views

Removing annoying click-handling logic from websites

There are a lot of websites out there that block your ability to right click or select text. I believe it's done as a sort of half-assed security measure to prevent people from copying text or images. ...
-1
votes
1answer
381 views

How we can download a PDF embedded with javascript in a web page

More specifically from "http://krishikosh.egranth.ac.in" it is a repository of Thesis. Previously IDM was able to capture all the pdf requests but now some Coding has been changed and its ...
0
votes
1answer
227 views

Website failed to load CSS and javascript

Website not displaying properly,on checking the network in inspect element i got more than 90 errors like: Failed to load resource: net::ERR_CERT_DATE_INVALID prettify.js:1 Failed to load resource: ...
0
votes
0answers
13 views

Lagging when swiching/skipping to a certain part of the video javascript/HTML

I have two similar videos. I have to do so when playing the one of them and then clicking on the screen - the other one starts playing at the same time when the previous one has been clicked on. I do ...
0
votes
0answers
13 views

Filtering out JavaScript while communicating with the server

the community! I am trying to achieve to filter out (or disable) all JavaScript data from the HTML page before delivering it to the browser. Disabling it in the browser doesn't suit me and I need to ...

1
2 3 4 5
17