Category : console

Hi everyone i been trying to make a chrome extension which fills up forms for me and i cant seem to get my data to fill in for me. It keeps on returning saying the value is null var button1 = document.getElementById("buttonstart"); var firstName = localStorage.getItem(‘First Name’); button1.onclick = function(){ var firstName = localStorage.getItem(‘First Name’); ..

Read more

I’m trying to run this function in a learning environment, but it results in an error of "Your program’s output is longer than expected" because console.log produces a newline by default. Are there any ways I can fix this? function calcSquare() { x = document.getElementsByTagName(‘input’)[0].value; result = x**2 console.log("The square of", parseInt(x), "is", parseInt(result)) } ..

Read more

I am currently hosting a videogame server on a host called shockbyte we use a thing called whitelist to allow players to join I was wondering if there’s a way to send a message into this server console using java script what I want is zapier to detect when a message is sent in one ..

Read more

I am trying to write a function in the console using node and puppeteer to extract some data. There is an easy way to get all console logs via puppeteer: const puppeteer = require("puppeteer"); (async () => { const browser = await puppeteer.launch({ devtools: true, }); const page = await browser.newPage(); await page.goto("https://www.example.com/", { waitUntil: ..

Read more

Soo im trying to run a code in google chrome console, but the problem is that the page is reloading and each time it reloads the code stops and getting removed from the console. is there any way to stop this? here is code im trying to use document.getElementById("g1").checked = true; document.getElementById("wr").submit(); window.location.href = ‘https://www.webpage.com/?site=second’; ..

Read more

Hi I am a beginner to javascript so I am having trouble. I am trying to get an element of a page using Console. Here is the code: var ELEMENT = document.querySelector(‘div.flexCenter-3_1bcw.flex-1O1GKY.justifyCenter-3D2jYp.alignCenter-1dQNNs’) And I want to get a specific thing from the element: ELEMENT.__reactProps$81cjqqgfk4j Simple? Not quite. The .__reactProps$ thing changes every time I visit ..

Read more

enter image description here As shown on the top left, the code is transferred on by opening the code in a separate file via chrome. The vs. code tab is where the raw code is displayed. Unfortunately, after incorporating the console.log command and applying an equation, the answer did not show up in the console. ..

Read more