This question already has answers here:
How to exclude iframe in Greasemonkey or Tampermonkey?
(2 answers)
Closed 6 years ago.
How can I prevent Tampermonkey from running on iframes?
E.g. I write a script for
// #include http://*.youtube.com/*
// #include https://*.youtube.com/*
The script will also run on external websites with embedded YouTube players. That's unneeded and even expensive when Tampermonkey fires 20 times on a page with 20 YT players.
How can I set the script to only fire when the surfed website is youtube.com?
If your script really only runs at Tampermonkey (and/or Greasemonkey and/or Scriptish) you also can use the #noframes directive.
Related
This question already has answers here:
How to make Selenium not wait till full page load, which has a slow script?
(2 answers)
Don't wait for a page to load using Selenium in Python
(3 answers)
"Eager" Page Load Strategy workaround for Chromedriver Selenium in Python
(2 answers)
Closed 2 years ago.
I'm writing a UI automated test that runs on SauceLabs (chrome browser) and want to make sure my test is handling when web pages are very slow at loading.
This question already has answers here:
button click is only working on Windows & not working on Android mobile sheet
(2 answers)
Closed 2 years ago.
I hope you can help me with this. I have assigned a script to multiple drawings (as buttons) in Google Sheets and is running perfectly on PC. When I try it on my phone, the script does not run, but rather gives an option to edit. What should I do, please?
The Google Sheets mobile apps doesn't support using drawings as buttons (assign a Google Apps Script function).
Regarding what you should do, you should look for other ways to call your functions from a mobile apps like using a edit trigger.
Related
button click is only working on Windows & not working on Android mobile sheet
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
Place watermark image on other images (C#, ASP.Net)
how to add water mark to a photo during uploading in asp.net ???
You can run ImageMagick ( http://www.imagemagick.org/script/index.php) from your asp.net script after the upload process, and put the required watermark.
a general example here :
http://foobarist.com/how-to-watermark-images-using-imagemagick-composite-on-the-command-line
This question already has answers here:
How to write JavaScript to a separate window?
(2 answers)
Closed 8 years ago.
How can I open a new browser tab in ASP.NET and write to it? I don't want to redirect to a page but I want to write/output the content directly from source.
You'll need to use JavaScript to do this then - look into window.open. Once you open a new window, you can access its document object to write the contents of it programatically.
This question already has answers here:
Are unused CSS images downloaded?
(7 answers)
Closed 10 years ago.
I'm concerned about load times on home page of our site.
My home page uses a default stylesheet with ALL the styles for the whole site. I have background image references for elements on other pages (i.e. not used on the homepage). Do these background-image graphics get loaded anyways when a user visits the homepage of the site?
Or are the only css background image that get loaded are the ones that are directly used on that page?
One way to find out: try a debugging proxy.
The answers may differ for different browsers.
The images won't load unless they are actually used on the page; as far as all the styles being loaded on the home page goes -- this is actually a reasonably good thing. Once that single CSS file is in the viewer's cache, its there and doesn't have to be downloaded for subsequent pages.
Someone else's post just reminded me I'm basing my info off of firebug; browsers other then FF may very well download those unused BG images, but I really doubt it.
Building on Erik's answer, you could use tools like Google's Page Speed addon for Firefox (which I believe is built on top of firebug) and see what is actually slowing down your website when loading.
You can find more info about the tool and some other tips here: http://code.google.com/speed/page-speed/docs/using.html