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
0 votes
1 answer
15 views

How to convert Arrow function to regular function [closed]

I have this sample here and I would like to convert the Arrow function to a normal function but didn't know how to do so. Thanks const intialValue = 0 const lineItems = [ { description: 'Eggs (Dozen)...
user avatar
  • 13
-1 votes
0 answers
24 views

why can't i see the video in the old website? [closed]

I try install Firefox Plash player and Mayback Archive but i still cant watch it https://web.archive.org/web/20081022222944/http://x17video.com/celebrity_video/jennifer_aniston/...
user avatar
0 votes
0 answers
7 views

Chrome overrides only work when DevTools panel is open

I would like to remove a particular result from the Google Image Search page. To do that I have the following code: const path = "//h3[contains(text(),'بیاموز')]"; const matchingElementSet = ...
user avatar
0 votes
0 answers
8 views

How can a bookmarklet replace multiple parts of the URL at once?

I've made a few bookmarklets that replace single solid portions of a URL, for purposes of mobile redirects or changing domain names while keeping the same paths, etc. But now I have a situation where ...
user avatar
0 votes
0 answers
18 views

Make a pdf file (potentially including a virus) secure to open without protected mode

sometimes I have to open pdf files from unknowm source and then print them. I use Adobe Acrobat in protected mode and disabled Java Script. When I want to print or mark something I have to disable ...
user avatar
0 votes
0 answers
8 views

Using Firefox reloader JS to reload a webpage for as long as I get redirected to a "Busy" webpage

wondering if you can help me. I’m desperate to get onto a website but can’t for the life of me get onto the appointment booking webpage. So I tried using firefox reloader to write a bit of code in it ...
user avatar
  • 1
0 votes
0 answers
20 views

How to run .js script on Chromebook?

I have saved a .js script that enables backing up chrome://flags from DevOps console. Running the .js script directly from console does not work though, and after a bit of research, I see that the ...
user avatar
  • 660
0 votes
0 answers
23 views

Creating Stamps with auto-generated signature blocks in FOXIT PDF Editor

I am currently working alot with FOXIT PDF Editor to create digital stamps with signature blocks for management to sign. Currently I have to insert my own custom stamp under the comments tab and then ...
user avatar
0 votes
0 answers
8 views

threejs autocompletion on nvim

i want autocompletions for three.js in nvim , kind of like the autocompletions we get if we open three.js file on a split window on vim [still not good], i searched in coc language plugins list, i ...
user avatar
0 votes
0 answers
41 views

Allow window.close(); in Chrome in settings

I want to use window.close(); for a personal automation script. However, I can't use it because the tab is not opened by window.open();, instead by the OS. In Firefox it is possible to set the flag ...
user avatar
0 votes
0 answers
48 views

How to stream .ts audio and video chunk to a rtmp server?

I am using youtube_stream_capture, to download an ongoing live stream from youtube. youtube_stream_capture downloads chunks something like this IMAGE I was wondering if there is any way to stream ...
user avatar
0 votes
0 answers
14 views

Need help to recover large file from Microsoft Edge blob_storage

I have large 8.3GB RAR file on Google drive, since it is RAR file I wanted to extract it through the Google drive, so I have used Zip Extractor app on Google drive, however once extraction started I ...
user avatar
0 votes
1 answer
41 views

How to create a console that act as a server?

I am a computer science student working on my capstone project. My team is building a vehicle renting system. In this system, user can book and rent a car they like on a specific date range. We are ...
user avatar
  • 1
0 votes
0 answers
20 views

Is there some way to force Pale Moon to change the spellchecking language?

I have an internal web system which I use constantly to write texts. I write these in both English and OtherLang. Having to constantly right-click, then click several times to switch the language ...
user avatar
  • 1
2 votes
1 answer
129 views

How do I make Windows 10 ignore the first keyboard input on wake-up?

I have set up a computer for my mother, who has Alzheimer and motor skills impairment. A custom web app displays a menu of options and she just presses the letter corresponding to what website she ...
user avatar
  • 33
0 votes
0 answers
22 views

Can CORS be selectively disabled for the empty browser tab?

I'd like to play with the JavaScript fetch API, fetching various urls, etc. so I opened an empty browser tab, popped up the console, typed the JavaScript, but the request failed because of CORS. I ...
user avatar
  • 1,959
1 vote
1 answer
216 views

Why do downloads that fail with error "NETWORK_FAILED" in firefox have the property "canResume" set to false? How can they be restarted in code?

I'm trying to fix the defunct Firefox plugin "auto resume downloads". It appears that to restart a download, one can invoke (from a plugin or Firefox's plugin inspector console) downloads....
user avatar
  • 200
0 votes
1 answer
99 views

How can I configure Acrobat so that it runs a Acrobat Javascript script whenever a PDF is opened in Acrobat?

I wrote an Acrobat Javascript script. How can I configure Acrobat so that it runs a Acrobat Javascript script whenever a PDF is opened in Acrobat? What have you tried? I looked around in the Acrobat ...
user avatar
0 votes
0 answers
13 views

a refresh script in a Chrome book mark. NOT refreshing bookmarks but refreshing a page the bookmark points to

At work I have two sites that hold my work orders. Right now I have to click the bookmark to worklist1 then hit refresh. When done if I just click the worklist2 bookmark it loads what I left, I have ...
user avatar
  • 1
0 votes
0 answers
21 views

Numbered file backups for Visual Studio code

Looking for a way to save/have numbered backups using Visual Studio Code - functionality on same lines that emacs supports. I'm refactoring rather complicated set of javascript files. Actions ...
user avatar
1 vote
0 answers
26 views

Is it possible for browser-hosted Javascript to alter html during page load?

I can put Javascript in TamperMonkey to tamper with the HTML.  Does it process the HTML as it is received, or does it alter the DOM after it is fully loaded? I want to alter links that contain ...
user avatar
  • 673
3 votes
3 answers
179 views

How does gmail know the brand of computer device

Watching the currently logged in devices in a google account I saw my PC listed with its brand: DELL-BRANDNAME (the brand name written on PC body). I thought it is not possible to get this information ...
user avatar
  • 151
0 votes
1 answer
93 views

Send a Click via Javascript console (chrome broswer console)

The whole webpage is like a javascipt container/iframe (i dont know the term) where there isn't really any element to click on. I basically want this click to keep alive the webpage. is there any way ...
user avatar
0 votes
0 answers
26 views

IP camera suddenly showing error in index.js Uncaught ReferenceError IPCLogin is not defined

I have a problem with my cheap noname PTZ camera. I use this cam for watching with its PTZ function and not for recording. We had a power out a few days ago, where the camera rebooted and where I ...
user avatar
  • 390
0 votes
1 answer
103 views

How do I get a .csv file, text formatted date to not to be converted to the date format in Excel

When I import a .csv or a .txt file into Excel the text formatted date, i.e. "Nov-24" (2021) (double quotes are in the file, 2021 is not) is converted to the date format and the current year ...
user avatar
1 vote
0 answers
29 views

Why is my CPU not maxed out? [duplicate]

I have a simple Node script in VS Code that is: instantiating a 300x300x300 array of booleans, initializing every element to false iterating through the array to flip true/false depending on a ...
user avatar
  • 1,077
1 vote
1 answer
130 views

cannot push to github repository

i have removed PROJECTJS repo and want to use task-manager-js repo,when i type: git remote -v it gives me : ProjectJS Task-Manager-JS (fetch) ProjectJS Task-Manager-JS (push) origin ...
user avatar
0 votes
0 answers
10 views

Disable VS Code extra suggestion box in JS files

How do I disable this extra suggestion box when typing in JavaScript files in Visual Studio Code?
user avatar
  • 113
1 vote
2 answers
236 views

Is it possible to kill all scripts on a webpage after loading the page in Firefox?

Is it possible to disable all scripts on a website after a certain time? For example, I would like to load a webpage and have it load executing whatever scripts it wants. However, I would like to ...
user avatar
  • 165
0 votes
3 answers
427 views

Capture text from website that's disabled copy-paste, printing and viewing source

I'd like to capture text from a website (for personal usage, not business) but unfortunately they have disabled copy-paste, printing and viewing the source. Is there another way of capturing the text?
user avatar
0 votes
0 answers
28 views

Always enable paste in Google Chrome?

Is there a way where I can disable JavaScript from disabling paste in Google Chrome. I don't want JS to be able to stop my pasting into a field. I want paste to always been enabled.
user avatar
  • 7,948
0 votes
0 answers
23 views

creating a full-screen web slideshow on win

i would like to do this from random images in a folder. the web is full of merchants that advertise this, but theirs are normally from specific named pictures. i've seen instructions on how to do it ...
user avatar
  • 1
0 votes
0 answers
84 views

How to block an URL which has changing numbers with uBlock Origin?

Using uBlock Origin, I want to block variations of the following URL: https://ir.ebaystatic.com/rs/c/desk08052021.js The 8 digit number after "desk" varies. I had the following custom filter ...
user avatar
  • 1
0 votes
0 answers
14 views

Displaying the Browsers Developers Tool Console via CLI

I am learning Javascript, and I need to access to elements of the DOM, so I have to use the Browsers Developers Tool Console, but I quite dislike X-Server applications when it comes to text processing ...
user avatar
0 votes
0 answers
62 views

Scrape specific data loaded with js on a website with curl (or other ?) in bash script

I try to scrape some information on this website : https://rubic.exchange/ I want the "swaps" and "bridges" volumes information at bottom retrieved with a bash script. I already ...
user avatar
0 votes
0 answers
38 views

How can I make Medium work on Google Chrome?

I use Medium and Google Chrome (93.0.4577.82) and a few weeks ago Medium simply stopped working properly on Chrome. When I click the buttons in the top navigation bar, the menus don't expand. I have ...
user avatar
  • 137
0 votes
0 answers
24 views

Would there be any actual secure, server side way to lock away react routes?

So I don't know what I am asking is even possible but is there any way, like you can do with static HTML and CSS websites to only let a person see the "/test" route for example if they are ...
user avatar
0 votes
1 answer
23 views

Is it considered API if I have css attributes called through javascript? [closed]

I am making a website for a school project, I don't know exactly what API is but from what little I know, is that it is the integration of multiple sources to give the user an outcome? If that is the ...
user avatar
0 votes
0 answers
50 views

Chrome : change Geolocation API provider

Chrome by default uses the Google Geolocation API (https://www.googleapis.com/geolocation/v1/geolocate?key=%GOOGLE_LOCATION_SERVICE_API_KEY%) as a Geolocation provider. Is there a way on Chrome / ...
user avatar
0 votes
0 answers
30 views

Making a file cookie HTML

Is there any way I can make a file a cookie? Because the thing I'm going to store on cookie is larger than one line. I've tried these codes: document.cookie = "cookie="C:\logindata.txt";...
user avatar
0 votes
0 answers
441 views

Loop steps in karate UI automation based on size

I have a karate UI feature file Issue:- In the file i have a step where there are n addresses and based on clicking each address i move forward to the next page/action. I want to do this dynamically ...
user avatar
  • 71
0 votes
1 answer
23 views

Can Acrobat's JS interface automate hyperlinking an existing, formatted listing of page numbers?

I am unfamiliar with Acrobat's Javascript interface and would like to know if the following is even possible: am having no luck searching for existing examples. It's hard to believe no one else has ...
user avatar
  • 1
0 votes
0 answers
29 views

Possible to listen for Video end and editing url with javascript?

So, i want a Autoplay-like script, that listens for a video that ends, and when it ends, it rises the last Number from the Url one up like x = x + 1 or x+= 1. Im not quite in to Javascript, more into ...
user avatar
0 votes
1 answer
391 views

Is it possible to run a custom script whenever loading a web page on web browsers?

I would like to block content on some specific languages whenever I open a page on my browsers (Safari and Chrome on macOS 11.4). I think the best solution is to use Google Translate API and check ...
user avatar
  • 425
0 votes
0 answers
26 views

Router web page does not loading correctly

When I try to log in to the router's configuration page, the following error message appears: Message: Syntax error Line: 886 Char: 14 Code: 0 URI: http://192.168.128.1/js/lib/require/require-jquery....
user avatar
  • 1
0 votes
1 answer
81 views

Prevent website from blocking bookmarklet script

While using some websites, I often use a language bar bookmarklet to type strange unicode symbols to show BQN code. When i click the bookmarklet on the discord web app, the following error shows up in ...
user avatar
  • 998
0 votes
0 answers
34 views

How can I make a bookmarklet to unhide youtube controls?

I found a command line to make a bookmarklet that hides the progress/controls bar on a YouTube video, so now I can pause the video and see the full image and take screenshots. Now I'm wondering how ...
user avatar
1 vote
1 answer
73 views

Why is there a 100 times difference in the execution time of the same JS code between Google Chrome and Chromium?

Recently, I found a website that uses a third-party chromium browser badly, but it is normal in Google Chrome; After comparative analysis, it is found that the reason is probably that there is a long ...
user avatar
0 votes
0 answers
21 views

Field content from other site in hint on a site

Today on some site when I've clicked into guest name field on some site, I saw my full name as been written in state declarations and official documents and never was given on the site, yet I come the ...
user avatar
  • 129
1 vote
1 answer
235 views

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

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 ...
user avatar

1
2 3 4 5
17