How would I be able to open a new tab with Tampermonkey and be able to use Tampermonkey on that page too - tampermonkey

How would I be able to open a new tab with Tampermonkey and be able to use Tampermonkey on that page too?

Use window.open() to open another page, if that page is also listed in #include, you're able to use Tampermonkey there too.

Related

Open all links in a new tab in PDF file created with pdfTron

I want to open all links from my PDF file generated with pdfTron and react in a new browser window. If I open the document with a PDF viewer and click on a link, it works fine as the link opens in a new browser tab. But if I initially open the PDF in the browser, when clicking on a link, the new page opens in the same tab and I need it to open on a new tab.
Adding target="_blank" on the <a> didn't help although this is working on the HTML template which is generated before the PDF file is created.
Doing it from native JS (using window.open) was also impossible.
Is there a way I can add an event listener maybe from pdfTron to tell all the links to open in a new tab? Please advise, thanks!
Unfortunately, you can't specify this in the PDF itself. You can, however, try modifying your links to point to an intermediate page which opens the link in a new tab. PDFTron has a guide on how to do something like this here:
https://community.pdftron.com/t/how-do-i-open-a-pdf-link-a-url-hypelink-in-a-new-browser-window/172

How to open a page without clicking on the menu link using Selenium C#

I want to open the Part Catalog page without clicking on the submenu link. How can I write the code to do that using Selenium C#.
This is because the menus links changes according to the user login and I cannot use the ID to expand the menu and click on the Submenu. Is there is a way just to open the Iframe inside the page using SRC ?
Please someone help me on this issue.
Thank you

How remove yandex toolbar from my browser?

I want to remove yandex toolbar. I cant see it in my control panel, i also remove it in my registry, but I can see it. I also remove my cache, but it's still there.
here's the extensions of chrome
enter image description here
Go to
chrome://extensions/
and remove your toolbar.

Joomla create html page with no menu

I have a normal article page with a huge image shown as a small one. What i want to do is, when the user click on the image, a new page is rendered and the image is shown at full size of the page (no menus, header, footer, etc.. just page). If the user click again, he will be redirected to the previous page.
How can i do this with joomla? I mean, i could create an html page, but i don't know how can i access it.
Any help would be appreciated,
RR
All you need to do is add this to any link you want to display without all of the module positions -
?tmpl=component
This tells Joomla to load just the component part of the page without anything else around it.
Not sure that anything specifically in Joomla is going to allow you to do that. The only way you can achieve that directly in Joomla would be using a light box type of plugin. When the user clicks the image, it will open up a full size window of the image. When the user click on the image again, it will exit the light box.
Otherwise, you can just edit the source code of the page, and change it to <img src="http://www.pathroyourimage.com/image.png"> . That way when a user clicks the image, they go directly to the picture.

Is there any way to open new tab(or popup, or window) with certain html content in silverlight?

I have a grid filled with some data in my silverlight4 app.
I want to have "Show this as html" button for the grid.
I can generate the html, export it to savefile dialog, but that's not what i need, because in this way user has to perform more actions, like:
click 'export'
enter filename
wait for download
find file open it in browser
Is there any way to create tab, or window, or popup with certain html content in it? (so it would be like
click 'show as html'
?)
Thanks in advance,
Ilya.
The problem is that you can't save it anywhere locally without user interaction (or elevated privileges).... so don't save it locally.
I can think of two options:
1.
Write the data back to the server
Open a normal popup web browser window, pointing a generated temp HTML page.
To open another HTML browser window from Silverlight you can use HtmlWindow.Navigate specifying _blank as the target type.
2.
Use the ability of Silverlight to execute any Javascript to open a popup with the content.
From Silverlight you can use ScriptObject.Invoke to execute arbitrary Javascript.

Resources