Hey there!
When a script is injected in a safari extension it runs on page load, so that means when an extension is installed the injected javascript will only apply to newly-opened pages or pages which are reloaded afterwards. Does anyone know how to ensure the javascript is run without having to reload?
Alternatively, forcing users t...
Hi,
I wrote an application that runs in the background and periodically scans my download folder and moves files to different folders based on their type. I want rewrite this application as a safari extensions, but I didn't find a way to intercept downloads. All in all the ExtensionAPI seems to be very limited and seems to focus a lot o...
The Amazon Search Bar extension adds an Amazon search field to your extension bar, which is exactly what I'd like to do. I can't find an example on SO or Google and I don't think any of Apple's example use a text field like that. Any examples or suggestions about how to go about it would be very helpful.
I'm just getting started with Sa...
I've written an Applescript to play a selection of streaming video programmes available on the BBC iPlayer and, though it works OK, my network connection is prone to interruptions which eventually trip up the Flash script that does the clever stuff within Safari.
So, I'd like to to add the facility to check the network activity at inter...
I'm doing a Safari extension and would like it to copy something to the users clipboard. Unfortunately all the sources I find talk about cross-platform solutions with Flash or have vague references to execCommand.
Is there a way to do it in Safari with JavaScript?
...
Please advise whether I am hallucinating... I hope so because I can't get tables to render correctly depending on the browser and I am hoping someone can provide me a solution.
My problems is that some tables do not display the right side borders with browsers that use webkit, i.e. Safari and Chrome. The version of Safari I am using is ...
I'm unable to force a page to always expire in Safari. Chrome, IE and Firefox are good citizens but Safari is cruising along just fine with ignoring the following ASP.NET code:
// Expire immediately
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");
Any recommendations?
...
I have defined a table with thead and tbody the header section of table remains fixed.This whole table is defined inside a div container.
I have given the main container 'height:inherit;' property so that the container fits in between the main header and footer, and also the table body named tbody is given 'overflow-y:scroll;' the scrol...
Hi All,
I've changed the User Agent in Safari browser to iPhone but nothing happens. Am I misunderstanding the use of this? I'm running Safari in a window environment.
Thanks,
rod.
...
This question is pretty much the same as this one except that I'm seeing it exclusively in Safari on Mac (the only platform I need to care about). It's definitely CSS-related and I think I've narrowed it down to a few properties which seem to wreak havoc on the way text is rendered. They are:
-webkit-transform-style: preserve-3d;
-webki...
currently i'm having 2 issues. first of all, in chrome and safari there is a gray border around an image link. the border isn't there in firefox. here's the code:
<a href="link.html" target="_blank">Link title <img class="leaving" /></a>
and css:
.leaving {
background-image: url("images/leaving.png");
height:10px; width:10px;...
Hi,
I am developing a safari extension and I need to create a popup once you click on a button, I tried an overlay with an iframe but, the destination redirects the whole page so I am forced to use a popup.
"window.open() JavaScript method cannot be used to open a new tab and widow from a global HTML file or an extension bar. Instead, ...
By default, when "bookmarking" a website as an icon (by choosing to Add to Home Screen from within Safari's "+" menu), the icon name defaults to the page's <title>, truncated to 12 characters.
In much the same way that apple-touch-icon lets you specify your own iconified representation of the page, is there a way for the webpage to spec...
Trying to create a vertical drop down menu purely with html/css.
the coding is quite clean as far as i can see, and works well in ff, ie (not 6 ofc), and opera though on google chrome and safari the "toplink" jumps to the left on hover.
html:
<div id="topmenu">
<ul>
<li class="toplink"><a href="about.html">About</a>
<ul class="s...
I would like to size a select list based on the width needed for the selected index(string). Say for example I have a list with 3 strings, short, medium, loooooong; I don't want the select list to automatically be as wide as its largest element, rather it should be as wide as its selected element.
The first method I tried: document.getE...
What reasons could there be for PHP to provide a new session ID to a Safari browser at absolutely random intervals?
Could the PHPSESSID cookie be expiring in the client?
Or maybe something else, more complex?
...
Firstly, please go to this url: celebritywallpaperbase
picture #1 is Drew Barrymore smile
picture #2 is Debby Ryan
They are both 1920x1400 but Safari on iPad displays picture #1 with 960 x 720, whereas picture #2 is dislpayed with its actual size 1920 x 1440.
I am making a photolib project for iPad & I wish Safari always display my p...
I have a page where once a button is clicked, it is replaced by an Ajax spinner whilst the user waits for the next page to load.
I am controlling (or attempting to control) caching using .htaccess. If the user hits back (browser button, mouse button, alt+left, backspace) it needs to reload the page from the cache. IEs 6-8 and Chrome wer...
Instead of going to Extension Builder > Build Package…, I'd like to built a .safariextz package from the MyExtension.safariextension folder.
I know I can unpack an extension with xar -xf. I suspect the way back involves packing it with xar, but then I'll need to do the code signing thing, which may or may not involve codesign(1).
...
I have a jQuery event handler that essentially looks like this:
$("textarea").live("focus, click", function() {
var o = $(this),
expand_height = "60px";
o.animate({height : expand_height});
}
As you can see, onfocus or onclick it is supposed to animate the expansion of the textarea from it's initial height (20px) to it's exp...