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 votes
0 answers
17 views

How to copy my data entered into web forms, for a personal copy [closed]

As a Firefox user, I sometimes have to complete forms on a large web page (actually about ten pages) and I wish to capture all my input for my own records. I know I could copy & paste each input ...
-1 votes
1 answer
12 views

How do I deploy local git repo from one account to another new git repo

I have a project setup locally which is on github. Now I have created a new git account with a fresh blank repo on git. I want my local project deploy on this newly created git account repo
8 votes
5 answers
14k views

How to disable / block / suppress a specific JavaScript (without disabling JS)

There's a specific script on a site I would like to disable without stopping the other scripts from working. I am using Firefox with Adblock Plus and Greasemonkey. I already googled extensively and ...
0 votes
0 answers
13 views

Simple way to automatically replace string in webpage body with Firefox? [migrated]

Without using a heavy browser extension, I would like to perform a find and replace on every webpage I load, to find a string such as www.yahoo.com/Query.php?= and change to www.startpage.com/Q.php?= ...
-1 votes
0 answers
65 views

Blazor drag and drop: ondragleave firing when on drop, instead of ondrop

i'm a noob trying to implement drag and drop in my blazor 8 hybrid application, but the ondrop event is not firing. Instead, ondragleave is fired when I release the mouse. We have two tables: Panel A -...
0 votes
0 answers
23 views

After changing the windows system time, the Date in the browser console is not updated immediately

After I changed the system date to '2024/2/27', the browser console still returns today's date. When I execute new Date().toISOString(), it returns '2024-02-28T05:37:55.404Z'. But after some time, it ...
1 vote
1 answer
108 views

How to append a specific string to a URL that matches, constantly with Tampermonkey? Or another method?

I want to append this string: &sp=CAASAhAB Every time a YouTube search query is performed to remove that stupid "People also watched" section. I've created a Tampermonkey script that ...
2 votes
1 answer
2k views

Is there a trick to get the Firefox's Devtools (developer tools) debugger to pause JavaScript using the keyboard?

When the Firefox Devtools (developer tools) Debugger pane is open, you are supposed to be able to press the F8 keyboard key to pause JavaScript. I find that this rarely works on complicated websites (...
0 votes
1 answer
5k views

Cypress shows 401 Unauthorized when visiting page

I am using Cypress to test some web applications. Most page addresses behave completely identical to when I visit them manually. However, I have some pages that return a 401 - Unauthorized as soon as ...
2 votes
2 answers
6k views

How to get around ERROR 405 Method Not Allowed with HTTP post

I'm trying to make an HTTP post on this website: https://www.colorado.gov/revenueonline/_/#2 (click Verify a Sales Tax License in the bottom right) using wget with the following command: wget --...
1 vote
2 answers
12k views

Browser inside a browser

My employees and I frequently need to open several internal web pages next to each other on the screen. Currently we do this by opening several Chrome windows and spending time to arrange for example ...
0 votes
1 answer
3k views

Why window.history.go() doesn't work from some pages?

(edit: changed most of the question) I got my answer regarding How to go to the very first page of a tab. Basically a bookmarklet javascript:window.history.go(-(window.history.length - 1)) It ...
3 votes
1 answer
3k views

In Google Chrome, how can I get rid of the big gray box that displays "The server refused the connection."?

I got sick of blocking sites such as facebook.com and facebook.net per browser, and decided to add them to my /etc/hosts file so the sites would be blocked entirely: 0.0.0.0 facebook.com facebook.net ...
13 votes
3 answers
3k views

Is there a way to directly open Chrome's “dedicated devtools for node”?

I use Firefox for my daily browsing; so the process of getting a Node inspector running is somewhat annoying: Launch Chrome. Manually visit chrome://inspect, because it refuses to set a builtin page ...
0 votes
1 answer
5k views

How to disable same origin policy in Chrome v81

It was working before but with the latest Chrome update (version 81), I can't log in to my web app locally. Console error is: Failed to load resource: net::ERR_CONNECTION_RESET Fiddler says its a ...
0 votes
2 answers
367 views

Search only specific bookmarks folder in chrome without subfolders

How can I search a chrome bookmarks folder and not its subfolders? Chromes default bookmarks manager is amazing along with its layout but it would be a whole lot better with this feature for ...
1 vote
1 answer
5k 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 ...
2 votes
2 answers
833 views

How do I delete Stackoverflow Cookies and certificates in Google Chrome?

How do I delete Stackoverflow Cookies and certificates in Google Chrome? I am open to using command prompt, or some script to expire all cookies in commandline. Want to only delete specific ...
0 votes
1 answer
9k views

JavaScript settings are on but I still have issues with web sites using JavaScript

I have two computers that are the same at home except I have installed Adobe Acrobat 9 Pro Extended on my main computer along with the 2010 Outlook (Beta). I have issues when I log into a website that ...
0 votes
0 answers
224 views

Chrome won't allow download of file opened via Chrome Extension's Javascript window.open(URL)

I have a Chrome extension which offers buttons, which when clicked perform a windows.open("url") command. This part works fine, and I get a new tab when clicked, with the correct URL. But ...
0 votes
0 answers
13 views

How do I refresh an page automatically every time an net::(ANY ERROR) is detected on the inspect console on Chrome?

So I have an question. The most annoying error I have in Chrome is the net::ERR_SSL_PROTOCOL_ERROR, which occurs for broken images. I used Codepal to help me make this script, but it does not work. I ...
4 votes
1 answer
3k views

How to disable "onclick" event processing on a web page with uBlock Origin?

Normally when a user clicks a middle mouse button on a link on a web page, the link opens in a new tab. When a user clicks right mouse button, a context menu appears. Now there are some annoying sites ...
0 votes
1 answer
5k views

How to disable view page source in Chrome?

I need one help from you that is to block the page of viewing the source (original sites should be opened but source page must be blocked). I have almost come to the solution with the help of ...
1 vote
1 answer
114 views

Restart/-load all active extensions in Firefox?

Firefox's extensions leak memory and, with time, consume more and more CPU. This can be reset by disabling/enabling them. Is there a way to cycle all active extensions enabled status, without being ...
19 votes
3 answers
21k views

How to halt javascript execution after page load (Firefox)

Javascript is responsible for loading the content of a page I need, so disabling javascript with noScript prevents the content from loading. However, once the javascript for this page has finished ...
1 vote
0 answers
424 views

How to Dynamically Create and Populate Word Document Templates with Form Data?

Preface I’m working on a project where I need to digitize the form filling process for a testing lab company. The company currently fills out forms manually and makes 40 copies of each form. The form ...
1 vote
1 answer
171 views

What program is behind "Node.js JavaScript Runtime" accessing my files (downloading cloud OneDrive files)?

(Note: This is probably not connected to OneDrive, but OneDrive is letting me see my files are being accessed. It may help others search this same issue if it happens to them.) Every reboot of my ...
8 votes
4 answers
4k views

How often do users change their IP address (average time needed)?

Basically, i need to know how long (on average) and ip address is used per user, this can be US-only stats or World-Wide stats, if you have a source please state it. If its your own data please let us ...
3 votes
3 answers
4k views

JavaScript error on embedded Internet Explorer

I have a wallboard setup to display statistics in the office, however the widget that uses embedded Internet Explorer keeps coming up with a JavaScript error. The error can be closed without causing ...
0 votes
1 answer
916 views

How to download pdf from a pdf.js viewer window which has download option disabled?

Having a really hard time downloading a pdf from a pdf.js viewer window which has download option disabled in its website, i perhaps think that maybe by some inspect element tools i can get till it ...
0 votes
0 answers
1k views

Download a pdf rendered by pdf.js

My tution gives out notes of their classes on their website, but they make them undownloadable. They are rendered in the browser with mozila's pdf.js library, and the 'download' button is hidden. I ...
0 votes
0 answers
58 views

After Win 10 Update (KB5028166) all browser javascript debuggers can't load form for debugging. How do I fix this issue?

Folks, The most recent Win 10 Update (KB5028166) was automatically loaded on two 2 of my VMWare Virtual machines. Before the update I could use browser tools, Chrome & Edge & Firefox, to debug ...
1 vote
1 answer
117 views

Firefox seems to be caching js files differently from other types

I am developing a web page and Firefox just showed me some weird behaviour Changes to html and css appear instantly in the browser Changes to js seems to be cached if I curl 'http://localhost/static/...
0 votes
0 answers
2k views

Execute a Batch and Powershell Script on a Remote File Server

I'm telling you that I'm trying to figure out how to run a PowerShell script without having it stored on the computer. simply running it with some jse script and let the script know where the file is ...
user avatar
9 votes
2 answers
7k views

Javascript alert box unblock on Mozilla

I have blocked Javascript alert messages on my Mozilla browser and now I want to turn them back on, but I can't figure out how. Does anyone else have this problem?
8 votes
6 answers
2k views

Chrome installation caused Internet Explorer/Javascript error

First of all I'm danish so my English is probably flawed. At my company I've had some complaints that after having installed Chrome certain pages on our intranet website was off limits. So I took ...
0 votes
0 answers
260 views

Table loading data with each scroll

does someone know a website that has a big table (a few columns and many rows) that loads each time we do scroll down? I'd like to extract some data of a big table with selenium or JavaScript with &...
1 vote
1 answer
1k views

How I can use Commonmark.js

Here is a quote from official repository: For client-side use, you can do make dist to produce a standalone JavaScript file js/dist/commonmark.js, suitable for linking into a web page, or fetch the ...
0 votes
0 answers
39 views

How to create a static website from MBOX file

I have a large MBOX file (16000 emails) from a public email group which is now closed. For archival and research purposes, I would like to serve these emails on a website. How can I go about ...
1 vote
1 answer
609 views

Why doesn't google.com show the voice search feature in Firefox?

In Chrome, google.com has a microphone search feature, as seen here: In Firefox though, it doesn't: In Firefox, I tried setting the user agent to Chrome's (Mozilla/5.0 (Windows NT 10.0; WOW64) ...
0 votes
1 answer
541 views

Split or replaceState to remove an anchor tag from a URL?

On our landing pages, we have a call-to-action button that moves the user to an anchor on the page. But the addition of an anchor tag in the URL is messing up our tracking data. I have come up with ...
1 vote
3 answers
141 views

what is the message "P.S We are running a small javascript miner...." on blogspot

I have created a blog to share some important question and answers with my friends. But when I open the blogspot link on edge browser it shows some abnormal behavior like computer becoming very slow. ...
1 vote
0 answers
25 views

How to add "auto rotate" and rotation direction and speed to a JavaScript application? [closed]

CalcPlot3D is an interactive JavaScript app for plotting math equations. Clicking on the 3D plot window and dragging the mouse on the plot will rotate the surface in the direction you move the mouse ...
1 vote
1 answer
308 views

How to remove all hardcoded content from Microsoft Edge's new tab webpage without installing any extnesion?

I have Windows 11 Home and I have the problem that every time I open a new tab in Microsoft Edge, a newspaper like webpage appears. Here is a picture of this webpage with its data structures that I ...
12 votes
2 answers
3k views

Stop console.trace from automaticly expanding in Chrome

I'm working on a project where some library calls console.trace every refresh. Chrome then automaticly unfolds the trace, so that it takes over 20 lines on the console. This takes too much space and ...
31 votes
5 answers
37k views

How Can I Stop Scripts on a Page in Firefox?

How can I stop scripts on a page in Firefox? I don't care if the solution is draconian. Super-tech-savvy solutions are also fine. Clarification: I don't want to turn off scripts permanently. I want ...
1 vote
0 answers
30 views

Can FindProxyForURL() discern the HTTP-method of the request?

I'd like my FindProxyForURL() to recommend a different proxy depending on the HTTP-method of the request -- GET, POST, or PUT. For example, the GETs can be routed through a caching proxy, whereas the ...
0 votes
2 answers
1k views

How do I disable JS only on specific pages?

There are sites archived on the Wayback Machine with broken JS. uBlock origin allows disabling JS on the whole site: no-scripting: web.archive.org true, but it is an overkill. Is there a way do it ...
2 votes
1 answer
538 views

How does discord know if it's installed on my computer/ how to prevent that?

I recently had to install the discord app to Windows 10, and now clicking on discord invite links in the browser initially opens the webpage, but then immediately redirects and opens the app on my ...
1 vote
1 answer
3k views

How to prevent a web browser from following redirects in a specific website?

I am trying to block myself from using Google Search Console by bringing myself back to Google Search, due to addictive behavior with Google Search Console*. The following JavaScript code works from ...

1
2 3 4 5
18