Skip to content

OBM II is an updated version of OpenBookmark for modern versions of PHP.

Notifications You must be signed in to change notification settings

s22-tech/OpenBookmark-II

Repository files navigation

OpenBookmark-II

OBM II is a rewrite of Brendan LaMarche's fantastic OpenBookmark script, to bring it back to life and run on modern versions of PHP. It retains the same 3-column layout, but has some major changes under the hood. One of them is that favicons are now named with the domain name so that only a single favicon per domain is saved to your drive. This will help keep your inode count low if you save a lot of links. Besides, why save multiple icons when one will do?

Features

  • Handles a wide array of favicon types — including SVG and base64!
  • Saves a single favicon per domain/sub-domain to keep file counts at a minimum.

Bookmarklet

Copy this code to your bookmarks bar for easy bookmarking of interesting sites. Adjust for your domain.

javascript:(function(){bmadd=window.open('https://your.domain.com/bookmarks/new_bookmark.php?title='+encodeURIComponent(document.title)+'&url='+encodeURIComponent(location.href),'bmadd','toolbar=no,location=no,status=no,scrollbars=yes,resizable=yes,width=500,height=500,left=50,top=50');setTimeout(function(){bmadd.focus();});})();

To Do

  • Update CSS
  • Add mobile view
This script works great on the desktop but it's useless on a phone. Since CSS is not my strongsuit, if anyone would like to contribute a mobile view, that would be fantastic. If you decide to submit a pull request, please keep in mind that I'm trying to keep this script as lightweight as possible, so adding jQuery and Bootstrap bundles is out of the question. Also, this script must remain self contained, so no links to 3rd-party scripts.

Requirements

  • PHP 8.0 or higher
  • Imagick
  • convert (linux cli tool)
  • identify (linux cli tool)
  • php-curl extension

Screenshots

Main Screen

Installation

To install, simply copy the files to your server and adjust the values in /config/config.php to match your database and server.

About

OBM II is an updated version of OpenBookmark for modern versions of PHP.

Resources

Stars

Watchers

Forks

Packages

No packages published