[macOs, Alfred, Safari, Chrome, workflow] CourseHunters.net's Video bookmarks by timing with Alfred.app (tags, playlists, e.t.c)

coursehunters-bookmarks [Safari, Chrome]

main-window main-window main-window

Видео курсы по программированию, в основном, носят характер справочной информации. Для облегчения ориентации по пройденному материалу, на базе программы Alfred (productivity launcher application for macOS) был создан этот Workflow.

Install

$ npm install --global alfred-coursehunters-bookmarks

or as coursehunters-bookmarks.alfredworkflow

Requires Node.js 7.6+ and the Alfred Powerpack.

Usage

In Alfred, type ch , Enter, and your query.
It will be work with Safari & Chrome only.

Bookmarks

  • To create bookmark needs to have opened Safari’s window with coursehunters.net’s video player in active tab.
  • type some shortcut (⌥⌘B - for example) to create bookmark
  • type some shortcut (⌥⌘S - for example) to show and go through the bookmark in the current playing video.
  • fn+↵ to delete one or several bookmarks (in specific filters will be deleted all bookmarks in the current filter)
  • hit To open preview window by any bookmark.

more info GitHub

also, you can consider alfred-youtube-bookmarks

any feedbacks are welcome! :slight_smile:

1 Like

Hello! very cool, thanks man for this worflow!!! why only safari?

Hello. I can’t get values from inner functions of the current webpage in Chrome

for examples in JXA:

function getTime() {
	const chrome = Application('Google Chrome')
	const currentTab = chrome.windows[0].activeTab()
	return currentTab.execute({javascript: 'alert(jwplayer().getPosition())'})
}
getTime()

Chrome returns reference error:

 Uncaught ReferenceError: jwplayer is not defined

in AppleScript the same:

tell application "Google Chrome"
	return execute front window's active tab javascript "jwplayer().getPosition()"
end tell

Settings in Chrome are done:

image

Update (v1.1.0): Chrome (browser) Supported