Why aren't bookmarklets working in chrome when site is down? - bookmarklet

I was trying to create a simple bookmarklet on chrome for browsing to isup.me and checking if the site is really down (javascript:window.open('http://isup.me/'+document.location.href)).
It works well, except for when when I actually need it, because apparently bookmarklets won't work on a site if it wasn't loaded...
Any way to go around this? (and why is it working this way?)

Related

error parallax effect in firefox but works on google chrome

I need your help my website is not functioning properly on firefox browser but in edge, chrome and opera and safari it works only firefox is not functioning properly
Firefox Browser
Google Chrome Browser
I would recommend setting up all your projects in Xampp or something similar first before testing it. If you are going to upload to a server you need to replicate the environment locally before you decide whether it is going to work or not. It seems complicated but it is quite simple, you can find out more here. https://www.apachefriends.org/
That said, check your urls, they are not the same for your two different screens, the one is referencing an anchor tag.

disabling (or fixing) ReadCube WebReader on Firefox

Mac OSX 10.11.2, Firefox 45.0.1
I'm trying to access articles through Wiley publishers website (onlinelibrary.wiley.com) and the PDF viewing function forces me to use ReadCube Webreader, which fails every time to load my article. I also cannot download the article. I have full permissions to view the article, but everything but the first page is blurred out. I just want to use Adobe PDF Reader like I used to, but I cannot figure out how to disable ReadCube. I have toggle this setting https://www.readcube.com/epdf_settings, cleared my cookies, turned off my addblocker, but nothing works! If I use Safari, which I really don't want to do, it works just brilliantly. Please help.
My add-on HTTPS Everywhere was interfering. It can be disabled by clicking the HTTPS Everywhere Icon in the browser window, and selecting the red-highlighted processes that are being encrypted by clicking on it. This is a bad answer to my question, because I'm not entirely sure how this has fixed the problem, but it has worked.

iOS5 Safari Kills Web Development With Super Caching

Well all right, maybe it doesn't kill web development completely... but it's certainly irritating. =)
I have been testing a site recently using various desktop and mobile browsers. So far, the only one that has given me significant trouble is Safari running on the iPhone 5, which uses a level of caching beyond anything I have seen before that seems nearly impossible to get rid of, which I now call Super Caching. This Super Caching has prevented me from testing my site as I am unable to test any changes - not to the css style, back-end c#, front-end javascript, aspx design, nada. I have tried the following methods to attempt to clear the cache for this page (both separately and all together):
Close all tabs in Safari, then close Safari entirely (double tap home button, close Safari icon there)
Settings -> Safari -> Clear History + Settings -> Safari => Clear Cookies and Data. Checking the Website Data after doing this confirms there is nothing there and shows 0 bytes of stored data.
Shut down my phone completely (not just sleep)
Change the url to my site by appending garbage information like ?random=pleasedontcacheme&random2=123
Add code to my site to try and prevent caching... which of course doesn't work because these changes are never retrieved by the phone's browser.
In short, testing has become a small nightmare at the moment. While any tips for how to actually destroy Safari's obnoxious caching would be greatly appreciated, I am more interested in making sure that this does not happen during development in the future. So my question is, for the current Safari browser, what is the best way to stop it from caching a website?
So far I have added the following to the Page_Load of my site's default page:
HttpContext.Current.Response.Cache.SetExpires(DateTime.UtcNow.AddDays(-1));
HttpContext.Current.Response.Cache.SetValidUntilExpires(false);
HttpContext.Current.Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
HttpContext.Current.Response.Cache.SetCacheability(HttpCacheability.NoCache);
HttpContext.Current.Response.Cache.SetNoStore();
Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
Response.AppendHeader("Pragma", "no-cache");
Response.AppendHeader("Expires", "0");
I have also seen others use meta tags, though they have been described as a bit hacky. (As found here).
I am still working towards a way to retake control of my iPhone's cache, but in the meantime, I would like to ask those who might be more experienced with this particular issue how well the above methods work for getting around the caching issue (during development mostly, but also good to know for future reference). Or, are there other solutions that have been found helpful for this browser/system combo?
Thank you very much in advance for any tips or advice. =)

how to get the current URLs opened in Chrome, from my app?

Long story short: I have to show statics, in my OSX app, about the opened websites in Chrome. So, I need to get a list of the opened websites.
At the beginning I thought in writing a Google Chrome Extension. But found "rescuetime". They already achieve what I want (and much more). Any ideas how they get the URLs opened in Chrome, they even block them!
Have you tried looking at the source?

creating a browser independent bookmarklet or browser addon

What is the best way to create one browser addon or bookmarklet that would seamlessly work on IE, Firefox and chrome, is there some google gadget that would let you do it?
This all depends on what you actually want to create. If your addon requires things like local storage or the use of xPath or other browser specific items than doing this seamlessly and correctly across the multiple platforms wouldn't be incredibly easy.
Generally speaking all the browsers are quite different. Chrome and Safari run webkit, Firefox Gecko and so on. Some support HTML5 well, others don't. If you're creating something complex you will have to do so for each individual browser. However, much of the code from one can be re-purposed with a few extra / different calls on another. Firefox for example has a lot in common with Chrome and Safari and Chrome and Safari are even more so closely related.
If your addon is very simple I'd recommend going with just a bookmarklet take a look at this http://www.smashingmagazine.com/2010/05/23/make-your-own-bookmarklets-with-jquery/ using JQuery will help solve some if not all of the browser specific issue's you'll run into.
If you require an addon/extension or a bookmarklet do it with JQuery where possible.
I can't really give a more specific yes or no answer without more information. If you could please expand on perhaps what you're looking to do it would be much easier to help you.

Resources