Questions tagged [popup.js]

A barebones, flexible jQuery popup plugin. Designed for developers, it's simple to use but very powerful.

Features

  • Barebones - it only has what it absolutely needs, the rest is up to you
  • Automatically detects images, external sites, inline content and ajax content
  • It can also cope with raw HTML, functions, jQuery...
  • Plus custom content types. (Think YouTube, Vimeo etc.)
  • Lightweight - ~1.7kb minified and gzipped
  • Made to be customized - callbacks and options aplenty
  • Fully styled with CSS, make it look however you want
  • Handles loading errors intelligently

Links

11 questions
1
vote
0 answers

Trouble Executing Scripts from background.js and Establishing Communication with popup.js

I'm encountering difficulties in executing three scripts from my background.js onto the currently active webpage. Additionally, I'm struggling to establish seamless communication between popup and background. Here's my current…
Kiya229
  • 63
  • 5
1
vote
0 answers

Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist

I'm working on a chrome extension and I'm trying to detect the input value in the popup.js file like this: // popup.js // Set up a listener for when the popup is opened document.addEventListener("DOMContentLoaded", function () { // Get a…
1
vote
0 answers

Chrome extension : simulate key press in current tab

With the best of my abilities (absolutely not a dev), I'm trying to developp a Chrome extension that resume a Netflix session on another computer. When I click the extension, the current URL of the tab is sent to another computer and there the URL…
Bibelo
  • 221
  • 2
  • 8
1
vote
2 answers

Popup.js - load external HTML content simply doesn't work

I'm trying to load an external HTML file in a popup using the Toddish pop-up library (https://github.com/Toddish/Popup). My situation is as follows: I want to load some HTML stored in an external file into the popup, but the library simply refuses…
Joshua Schroijen
  • 376
  • 6
  • 23
0
votes
0 answers

Google Chrome Extension popup.js is executing on all tabs where the plugin is active

My chrome extensions executes the information of the popup.js in the previous tabs (where the extension is open). Is there a way to keep the execution of popup.js isolated in the current tab?
Raymond Eiber
  • 23
  • 1
  • 5
0
votes
0 answers

How to get the Current Tab Url while the code execution does not moves forward in popup.js in Chrome Extension?

I want to get the Current Tab Url at the start of execution of popup.js while the code execution does not move forward to the next lines, how to do that? This is my code : let problemIndex = ""; let contestId = ""; let pathName = ""; …
0
votes
0 answers

Chrome extension: Display popup.html but only when there's an error in background.js

I've been trying for ages to solve this but no luck so far. What I want to do is that when the extension icon is clicked on a check to be made. If that check fails I want the popup to be displayed, otherwise hide it. Then at each subsequent click on…
0
votes
0 answers

Chrome extension get JavaScript page variable

I have www.example.com which loads a script like This script has var nameVariable = true; How could I get the value (if it exists) in a popup.js of chrome extension?
Chuntin
  • 1
  • 2
0
votes
1 answer

Click event is executed at every click I made apart from active selector

Code that I wrote is as below.

skill description - 1

Below JS code is expected to load popup window upon click on .skill_1 element. however, somehow after first click on .skill_1,…
Yunjae Oh
  • 111
  • 1
  • 2
  • 6
0
votes
2 answers

Why does this popup add multiple overlay

I am using popup.js to display content inside a popup. However, if I am executing the basic example, this is what I am getting: What you see here is the popup with some uninteresting content, but you can also see that
Stefan Falk
  • 23,898
  • 50
  • 191
  • 378
-1
votes
1 answer

I'm trying to create a chrome extension and I'm having an issue with the popup.js

Uncaught (in promise) TypeError: Failed to fetch Context popup.html Stack Trace popup.js:10 (anonymous function) "const response = await fetch('http://localhost:5000/process', {" document.getElementById('keyword-form').addEventListener('submit',…