Safari Extension Hierarchy List

Command clicking the Title bar in Safari used to produce a dropdown menu that let you see the current web pages hierarchy. You also used to be able to click on the list items and be taken to that part of the site. But in recent updates to Safri this option has gone.

I wanted to get back, but could not find a way to re enable it.

So I wrote my own in the form of a Safari Extension.


 

HListIcon

Hierarchy List Safari Extension

safari-extensions


 This extension displays a Popover with the currents tabs/windows website’s folder hierarchy.

 

HIERARCHY List now has a dark mode.

Go to its extension settings and toggle to the one you want


Each listed subdirectory is a clickable link which will take you there, if the site allows the subdirectory to be displayed *.

v1.0.7


Download “Safari Site Hierarchy List.safariextz” HierarchyList.safariextz – Downloaded 13697 times – 60.78 KB

(*if the subdirectory cannot be displayed due to normal permissions you will go to the sites 404 page or any redirect they supply for no-access subdirectory or pages. )

Hierarchy List  was Created by markhunte – markosx.com | Copyright 2015 markosx.com. All rights reserved.

 

 

 


Close/Open all Notification Centre Alerts and Banners with a Keyboard Shortcut

[wce_code id=”10″]

Screen Shot 2014-11-13 at 21.23.22

If there are times when you want to close or open in one fell swoop, all the on screen Alerts and banners that Notification centre has populated your screen with. But could not find a way.

One way you can  is by creating an Automator service to run the below  Applescripts and give them a keyboard shortcut in the System Preferences Keyboard shortcuts to do so.

Here is how.

Continue reading “Close/Open all Notification Centre Alerts and Banners with a Keyboard Shortcut”

Sync random order Pictures on Multi Screen Desktops.

Apples built in ‘Change picture – random order’ option for your desktop Pictures is great.

Screen Shot 2014-11-12 at 21.17.41

But what happens if you have more than one Screen/Monitor.  Well each screen needs you to turn this on separately . And the pictures for each screen will be independently random from each other.

We can fix that using Applescript and LaunchAgents we can turn off  the above and make each desktop picture change to a random image at a set interval and be the same image on each desktop.

Each desktop changes to the same image. If I switch to a new space on a desktop it’s image will change when the time comes.

Heres how..

Continue reading “Sync random order Pictures on Multi Screen Desktops.”

Get Notification when a specific wifi network becomes available

Ever wanted to be notified when a certain wifi network becomes available?.

Maybe you are at University and the wifi goes up and down randomly. Just like the person I originally wrote this code for who is charged for mobile data when using their iPhone as personal hotspot during the Uni. wifi outage.

Here is a simple way of doing just that.

Continue reading “Get Notification when a specific wifi network becomes available”

Swift programming – Huh, No need to import .Swift Extension file

[wce_code id=”1″]

Many of you may have started to use the new Programming language Swift which Apple introduced in the WWDC 2014 Keynote.

It took many of us by surprise and for me a “oh here we go again, I now have to try and get my heard around another language”.

Apple explains that it should be easier to use and easy to pick up for new  comers.

 I suspect that it will  be as Apple says for many people, me included.

One thing so far that I like and there are many..

Continue reading “Swift programming – Huh, No need to import .Swift Extension file”

10.9.3 Update hides /Users/ folder (fixed)

There have been many reports of the latest OS X update from Apple 10.9.3 (Build 13D65) intentionally hiding the /Users/ folder.  I am not convinced this is intentional but it has Happened to me.   People have suggested running the Terminal command

sudo chflags nohidden /Users

But After a logout or restart  you would have to run it again. Annoying!. Some one mentioned that it maybe the latest iTunes update that started it in conjunction with Find My Mac being switched on.  YES My where. So as an experiment I turned off Find My Mac. and ran the command. My Users folder obediently became un hidden. And on reboot stayed unhidden. But wait what about Find My Mac. Well I do want it on right. The only problem is turning Find My Mac back on makes the /Users/ folder go bye, bye : watch the video.

I will experiment some more. Because I think when I first did this It stuck around with Find My Mac switched back on, but I cannot remember just now what order I did things in to get it. i.e when I had Find My Mac back on.

Update – fixed ..

Continue reading “10.9.3 Update hides /Users/ folder (fixed)”

NSPopover Close behaviour when entering Mission Control or LaunchPad

Geoff Coope asked about the close: behaviour of the NSPopover when entering Mission Control in the comments  of my previous post   Epiphany-for-fixing-nspopover .

He had noticed that the Popovers did not close when you entered into Mission Control

This was not something I had noticed as I had never gone into Mission Control with a popover open.  But he was right and not only in Mission Control, entering  Launchpad also does not close the Popover.

I had just been using a notification to control a NSDocuments behaviour and had an idea that the same thing could work.

Continue reading “NSPopover Close behaviour when entering Mission Control or LaunchPad”

Custom HEX Color Picker – 1520 HEX colours

Using a couple of hex colour list from the web. I made a .clr  Colour Picker Palette file. Using NSColorlist

This can be placed in you users colours folder:

~/Library/Colors/

Once done.

Newly launched Applications will pick up the new palette which holds 1520 HEX colours.

I have marked some of the names with Web Safe. These should match what is considered web safe by those that know.

Screen Shot 2014-01-22 at 15.28.13 Screen Shot 2014-01-22 at 15.23.20

Download “Custom Apple Color Picker : 1520 HEX colors” Web-Safe-other-Hex-Colors.clr_.zip – Downloaded 17047 times – 20.57 KB

Transparent NSWindow using subclasses of NSWindow and NSView

This is a quick example of how to get a Transparent NSWindow using a subclassed NSWindow class and a subclassed NSView.

This is in response to a stackoverflow users request I post the source code. Which I have done here in context.

(Originally it had also had a webview which was related to the question but was not essential in any way in this example so it has been removed.)

Transparent Window with Controls and Labels overlaying it. If you click any where in the transparency the mouse will click the object behind the window. And the objects Application will become the active one.

transparentWindow2

Continue reading “Transparent NSWindow using subclasses of NSWindow and NSView”