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
0answers
16 views

I want to ake a person copy text with its font-family that i have added to its css? [duplicate]

I want to add css to the copied text that the user copied to his clip board. <div><p class='para'style="font-family:'Monofett'"> Hlo guyz</p></div> please help to copy the text ...
0
votes
1answer
18 views

Is it possible to copy text from a webpage and retain the fonts in the CSS? [duplicate]

When a user copies the text he/she is not able to copy it with font and style. font and style is not added to the text copied on clipboard. <div class="box"> <p class="textstyle" id="...
0
votes
0answers
14 views

How to copy text with font of a html tag? [duplicate]

I am working on a project to make a website which takes input from user and shows it in different fonts and styles . But there is a problem there when a user copy the text he/ahe is not able to copy ...
0
votes
0answers
13 views

how to make user copy text with its font using javascript? [closed]

I am developing a website which takes input text from use and display it into different fonts .But THeres a problem the when user copies the text its font is not copied . Texts font-family is not show ...
-4
votes
0answers
20 views

How to Add Support For en-US in i18next Library [closed]

I am working on internationalizing a web application and I want to add support for loading a language namespace 'en-US'. Currently this is how the init function for i18next is setup for the app: ...
0
votes
0answers
6 views

TypeORM: Can you put multiple data migrations in one file? [migrated]

I have a data migration that calculates some data based off one column ("column1") in a table, and then inserts that data into another column ("column2") from the same table. Using the TypeORM, it ...
1
vote
1answer
55 views

Will running a computer program perpetually damage my computer?

I've written a Node.JS script for a Twitter bot that I made recently. It sends a tweet to the Twitter API at the top of every hour. I plan on running this in my command prompt perpetually, but am ...
0
votes
0answers
12 views

How to inject code into Gmail [migrated]

Gmail has Social and Promotions tabs that regularly have advertisements at the top of the list. After playing around with the console, it was discovered that running $("li[data-tooltip='Delete']")....
0
votes
0answers
14 views

Recover JavaScript files from deleted partition [duplicate]

I deleted my whole partition by mistake. To make things worse I created a new partition over it (I didn't leave it like unallocated space). However I didn't copy anything to that partition or used it ...
1
vote
2answers
46 views

Possible to modify hardcoded Firefox JavaScript Ctrl-Tab panel behavior?

In the source code for the Firefox Ctrl+Tab behavior there's a hardcoded limit of 6 tabs: /** * Ctrl-Tab panel */ var ctrlTab = { maxTabPreviews: 6, //... for (let i = 0; i < this....
0
votes
1answer
103 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
0answers
18 views

Javascript is blocked on certain sites [duplicate]

I'm running Chrome Version 80.0.3987.106 (Official Build) (64-bit) on Windows 7 pro. I occasionally click on a site I want to see. When I do I get a blank screen and when I click on the small lock at ...
0
votes
0answers
11 views

Is there a modern equivalent to Firefox's old Configurable Security Policies (CAPS)?

Firefox used to have various security policies which allowed users to configure aspects of the browser with finely-grained permissions; for example, controlling exactly what JavaScript could or couldn'...
2
votes
1answer
46 views

How do I prevent the browser (JavaScript and CSS) from disabling text selection on web pages without disabling all JavaScript?

Some websites insist on ruining usability and accessibility by disabling the ability to select text on the page. Sites can do this via CSS or JavaScript (example page). Is there some way that this ...
1
vote
1answer
66 views

Syntax highlighting for embedded languages in VS Code

I am busy making my own grammar extension in Visual Studio Code. The language is called Snake, say, and the grammar kicks in when a file of the kind "*.snk" is opened, for instance "hello-world.snk". ...
2
votes
1answer
61 views

How to Disable Web Page Checks for Focus, or Spoof Focus on Firefox Browser Tabs?

Problem: Some web sites refuse to load unless the tab is active, whereas most users appreciate tabs loading in the background. This behavior may not be specific to Firefox. Examples: https://www....
1
vote
0answers
32 views

How do I stop web pages/scripts from intercepting some (or all) of my keystrokes or hotkeys (e.g. Ctrl+Z)? [duplicate]

Many websites (including this one) seem to think it's acceptable to assign their own custom functionality to system hotkey combinations. For example, this text box I'm typing in right now has custom "...
0
votes
0answers
182 views

change firefox newtab background

I am trying to change the background image of the Firefox New Tab. I have been doing the solutions given, but I want to make it dynamic. Is there anyway that a JavaScript file can be used like ...
0
votes
0answers
77 views

Chrome Browser tab crashes when not active

I have a heavy javascript code , something like below for(i=1;i<=100;i++) { var ceiv = 100.0* implied_volatility(0, ceprice,hmmprice, price, rfi, dvd, t) } function implied_volatility(i, ...
0
votes
1answer
70 views

How to get data after # in URL, using HTML/Javascript? [closed]

Basic Question Description: How to get data after # in html? For instance, Wikipedia has "https://en.wikipedia.org/wiki/HTML#Markup" how would I get the Markup attribute from HTML/Javascript?
0
votes
0answers
26 views

Disable javascript detection by websites / view sites that block non-javascript access

Is there a way to access websites that are entirely blocked to browsers that have javascript turned off? No matter what URL you go to at these sites you get a white screen with a message saying you ...
0
votes
0answers
58 views

Capturing data stream of a JS / Leaflet animation as MP4

How can I capture the datastream of a JS / Leaflet animation and download it to MP4? I am looking for output that looks something like the smooth path traced in these demos: https://github.com/...
0
votes
0answers
32 views

Whats a good way to disable Chrome “window.” mouse-out javascript for all websites?

Whats an easy way to permanently disable the mouse-out for the viewable portion in chrome (the section where websites appear)? I'm honestly not sure what the technical term is for it, but in ...
0
votes
1answer
46 views

How to prevent loading a mozilla addon? [closed]

There is a firefox addon that I have installed. It executes after the current page is completely loaded. I want to prevent this addon to be able to run on my website. How can I prevent the content-...
1
vote
0answers
35 views

Parsing wmic logicaldisk get Information [duplicate]

I am retrieving disk information via JavaScript with the wmic statement, wmic logicaldisk get freespace,name,size,volumename, which produces the following output, but in a single string. "FreeSpace ...
2
votes
0answers
127 views

How to disable a portion of JavaScript on a website

I'm trying to disable smooth scrolling. I tried a bunch of JavaScript in Tampermonkey. It worked on some sites, some don't and some disable scrolling altogether, which leads me to believe that there's ...
0
votes
0answers
250 views

failed to load resource net::ERR_FILE_NOT_FOUND Nodejs

I am in a mind boggling problem, unable to decipher whether or not the way how Windows and Ubuntu manages files had anything to do with socket.io in particular. I obtained the failed to load resource ...
1
vote
0answers
21 views

How to proxy an url

I want to do some local debugging of local javascript files instead of production javascripts. But I am getting all kinds of CORS blocking , What I need is if I open something like ...
0
votes
1answer
79 views

Cannot convert webm video and audio to mp4

I am trying to record video and audio in canvas using RecordRTC and converting it to mp4 but getting below error. Please suggest me the command for ffmpeg to fix the issue. Received command: -i video....
0
votes
1answer
44 views

Why use REST api while you could do everything with `POST`?

I've read about documentations on REST api. From a beginner's point of view, I don't understand why use REST while you could do everything with the post method? For example, if I request the backend ...
0
votes
1answer
49 views

Scroll in the HTML file without scrolling bars

I have a HTML file with javascript, which adds to the mouse wheel zoom function (instead of scroll). Scroll bars aren't displayed and moving up-down-right-left is only through drag-and-drop with the ...
3
votes
0answers
172 views

Chrome (Brave) DevTools Sources Panel missing JS colors and tooltips

Suddenly my Brave app's Dev Tools Sources Panel is missing colors and tooltips for JavaScript files. Here's what I see in Brave: Here's that same file JS file on the same breakpoint in Chrome, ...
0
votes
1answer
70 views

CPU vulnerabilities and web JavaScript [closed]

(using Linux desktop) I am paranoid about Spectre/Meltdown/similar and the fact that JavaScript delivered through web browser can read whatever is in my RAM. I have disabled all JS and when I enable ...
0
votes
1answer
30 views

Which libraries they use to draw a dynamic chart of “country’s GDP ranking history”?

I would like to draw a chart like this: https://www.youtube.com/watch?v=wykaDgXoajc Does anyone know which JavaScript libraries they use to realise this (e.g., changing year dynamically, changing GDP ...
0
votes
2answers
196 views

Enable JavaScript in URL bar in Firefox

Is there any method in about:config to enable in the URL bar JavaScript prefixed by javascript: to run in Firefox? browser.urlbar.filter.javascript: false doesn't seem to work.
0
votes
0answers
11 views

CPanel return javascript file with bad encoding

I have a webpage hosted in cPanel on my own VPS (with WHM). And after updating cPanel, the return Javascript file at the following URL is in encoded incorrectly: http://flexibilniobklady-jihlava....
0
votes
0answers
79 views

Heroku git push rejected

I am a learner at the very beginning and I am having an issue with an app I am supposed to host on Heroku. It is an MERN app, not yet complete, but so far, functioning. I did the initial proceedings ...
0
votes
1answer
36 views

javascript on VScode

I copy the code from my udemy course. But the result is totally different. Nothing shows on my website. Can anyone tell me what wrong it is? html_code js_code website
0
votes
0answers
16 views

MS ACCESS Database

I have this error displayed on my connection wizard: Cannot establish a connection to jdbc:odbc:userdsn using sun.jdbc.odbc.JdbcOdbcDriver ([Microsoft][ODBC Driver Manager] The specified DSN ...
1
vote
1answer
35 views

How to debug node js applications

I have a nodeJS app It queries the Database(mysql) and makes certain API calls. On a load test two things happen: It just stops responding for some users The variables for some users are overwritten ...
0
votes
1answer
67 views

How to use the fingerprinting feature to optimize your privacy with firefox

Superusers, I know by now how the new firefox fingerprinter works and what it does thanks to another question. But this question now is: to understand this setting's impact on the actual user-tracking ...
0
votes
0answers
15 views

Select & Search in Cognos 10.2 not pre-polulating

We need to use the Select & Search Prompt in a report I am building due to the size of the data in the field being filtered on. I have a Prompt Page created with the Select & Search Prompt ...
0
votes
0answers
28 views

Cookies to Variables in Electron

I'm making a desktop client for an online game I help to manage. One of the things the client needs to do is to read the cookies that the site sets and store their values in variables. I have code ...
0
votes
0answers
26 views

How do I run these js files?

I am sorry this is a silly question but was just looking for a quick short answer. I have no coding experience. The screenshot attached is a list of folders and files for a frontend website. How and ...
0
votes
0answers
32 views

Goto definition not working in VsCode for Sails.js application

I am using VSCode for my Sails.js application. In Sails.js, we don't have to include any folders in code. The goto-definition is not working for any file. The definition is in another file. Any ...
0
votes
0answers
29 views

indesign duplicate filelink and update link

i have indesign file with image inside, how I can duplicate the original image in the desktop and relink to the copy in document? I try this code in script (but he don't duplicate the file): if(...
0
votes
0answers
140 views

How to modify a URL in a cypress test?

I have a Cypress test that I wrote, and to avoid writing a second test, I'd like to be able to take the resulting URL, and do two things with it: 1) I'd like to modify it to force it to another page ...
0
votes
0answers
64 views

Creating highcharts chart and updating chart

I'm trying to create a simple higharts chart from a local stored csv file on my server. I cannot use the built in data module for csv file because I need to use a relative path for the csv so I found ...
0
votes
1answer
97 views

Conversion javascript code from storeEval to executeScript_Sandbox (Selenium Ide Kantu Ui.Vision)

I need a conversion of two javascript code to obtain date and time in prefered format from storeEval To executeScript_Sandbox to use in Selenium Ide Kantu Ui.Vision From some update storeEval is ...
0
votes
0answers
30 views

Macbook air A 1466 no power on

I have Macbook air A1466 no power on, if I unplug the touchpad cable, plug power in it boot up as it used to,but plug it back, plug power in it has no response at all, I wonder if I replace the ...

1
2 3 4 5
17