Solved Allow Selecting/Copying text from JavaScript popups
-
Hello, I would like to select and copy the content of a JS pop-up. And it is not possible today, Could you implement that possibility?
//MODEDIT: merged relevant threads, updated title & tags
-
This is now implemented natively. Previous solution below:
- Open
vivaldi://experiments/
- Select the following option:
Allow for using CSS modifications. - Go to Vivaldi Settings > Appearance > Custom UI Modifications and click on Select Folder...
- Pick any folder on your computer (or create a new one, dedicated to UI modifications)
- Within that selected folder, create a plain text file and copy the following code into it:
.dialog-javascript { user-select: text; }
- Save the file with the extension
.css
instead of.txt
, for example:js-dialog-select.css
- Restart Vivaldi
From now on, you should be able to select text on the JavaScript modal dialogs.
- Open
-
In Opera 12 we could copy a JavaScript popup (alert)’s text content.
We can no longer do it in Vivaldi, latest version. -
It's been 8 months since this topic was last updated. I just installed 1.15.1147.55 (Stable channel) (64-bit) for Windows and the issue is still occurring.
It appears to be a Webkit issue as the issue is also present with the latest versions of Chrome,Opera and Falkon while Firefox is not affected.
To test I navigated to URL: http://www.popupcheck.com/advanced-pop-up-test.asp and seleted the link: (C) Popup Blocker Performance Capacity Test
Then in the alert I tried to copy the text: "This test to check your popup blockers .... has a good performance"
Believe it or not, for monitoring some intranet sites at work I still use Opera 12.18 as it ticks all the boxes for what I require. Just recently our customer portal has been updated and Opera no longer works: the first nail ...
Vivaldi is very close to perfection ... just this one glitch before I update.
Regards,
Ivan
-
This would be very useful.
In Windows, standard message dialogs can have their contents copied to clipboard if you press ctrl+c when it is in focus.
That seems like common enough behaviour to replicate in Vivaldi.
-
It is supposed to be fixed with next release: https://forum.vivaldi.net/topic/22710/copy-an-alert-text-content !
-
I am in 2.8.1664.40 (Stable channel) (64 bits) but still cannot copy alert text.
-
Hey Team!
For some reason, when I have a JavaScript alert box popup, I cannot select any text from this.
Within Chrome or other browser, it allows me to highlight text from an Alert Box.You can run reproduce this by doing the following:
- Press F12 or open Developer Tool > Console > window.alert("testing");
- Hit enter and then try selecting the text "testing"
Is there anyway around this? If I remember correctly this has something to do with the WebKit? Which confuses me as isn't Vivaldi just a skinned Chrome with a bunch of cool features built in?
Thanks,
Sean -
@seanhub Hello and Welcome to the Vivaldi Community
I cannot select any text from this.
What would be the use case for being able to do this? It seems very much an edge case.
I can confirm the "issue", text is not selectable in JS alter boxes. I guess it's a bug, but I can't imagine high on priority list.
Please read:
carefully and report the bug to Vivaldi bugtracker
Which confuses me as isn't Vivaldi just a skinned Chrome with a bunch of cool features built in?
Vivaldi is basically an App built on top of Chromium. The UI is what sets it apart, and in this case the JS alert box is handled by Vivaldi, not Chromium, that's why it's different.
-
Bug is known: VB-29942 "Can't copy alert box content" and was confirmed years ago.
-
This is now implemented natively. Previous solution below:
- Open
vivaldi://experiments/
- Select the following option:
Allow for using CSS modifications. - Go to Vivaldi Settings > Appearance > Custom UI Modifications and click on Select Folder...
- Pick any folder on your computer (or create a new one, dedicated to UI modifications)
- Within that selected folder, create a plain text file and copy the following code into it:
.dialog-javascript { user-select: text; }
- Save the file with the extension
.css
instead of.txt
, for example:js-dialog-select.css
- Restart Vivaldi
From now on, you should be able to select text on the JavaScript modal dialogs.
- Open
-
-
-
@luetage also proposed
user-select: all;
(which is less natural but saves time for me, I like it too).Also what's best selector between
#modal-bg
(it works good here) and your.dialog-javascript
?All these work-around possibilities are great! Thanks!
Where could I see what other selectors could be used for other things?
Vivaldi is not open source, I dont know where to search.
Apparently when topics are merged, there are no redirects: : merged /topic/22710 (2017-11-30) does not redirect here (archived).
I didn't see this merged topic so I created a new Copy an alert text content (2). -
@jesus2099 Learn how to inspect the UI, then you can look it up yourself. Vivaldi not being open source has nothing to do with reading the code.
-
Wow, I love the command chain to open DevTools on Vivaldi UI!
Some little details are still missing to me but really I can feel the Opera classic spirit in those details.
-
Thanks @luetage, I managed to build that Inspect UI command chain and inspect the modal.
I can use either
#modal-bg
or.dialog-javascript
as they both matchalert
andprompt
popups.I will keep
#modal-bg
because it's the first advice I got. -
-
Hey it works antively now!
I'm in 5.7.2921.53 (Stable channel) (64-bit) without CSS work-around and I can select text in alerts! Woohoo!