PageSourceSearch

https://haessal.net/w2aDesign/js/bookmark.js

js haessal.net collected 2026-10-04 13:27:46 UTC 1,078 bytes, 26 lines download raw bytes

1function addFavorite() {
2  var bookmarkURL = window.location.href;
3    var bookmarkTitle = document.title;
4    var triggerDefault = false;
5
6    if (window.sidebar && window.sidebar.addPanel) {
7        // Firefox version < 23
8        window.sidebar.addPanel(bookmarkTitle, bookmarkURL, '');
9    } else if ((window.sidebar && (navigator.userAgent.toLowerCase().indexOf('firefox') > -1)) || (window.opera && window.print)) {
10        // Firefox version >= 23 and Opera Hotlist
11        var $this = $(this);
12        $this.attr('href', bookmarkURL);
13        $this.attr('title', bookmarkTitle);
14        $this.attr('rel', 'sidebar');
15        $this.off(e);
16        triggerDefault = true;
17    } else if (window.external && ('AddFavorite' in window.external)) {
18        // IE Favorite
19        window.external.AddFavorite(bookmarkURL, bookmarkTitle);
20    } else {
21        // WebKit - Safari/Chrome
22        alert((navigator.userAgent.toLowerCase().indexOf('mac') != -1 ? 'Cmd' : 'Ctrl') + '+D 키를 눌러 즐겨찾기에 등록하실 수 있습니다.');
23    }
24
25    return triggerDefault;
26}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.