2011-01-20 09:57:23 -05:00
NEWSBLUR . ReaderGoodies = function ( options ) {
var defaults = { } ;
this . options = $ . extend ( { } , defaults , options ) ;
2012-05-17 18:40:46 -07:00
this . model = NEWSBLUR . assets ;
2011-01-20 09:57:23 -05:00
this . runner ( ) ;
} ;
2013-04-11 16:50:18 -07:00
NEWSBLUR . ReaderGoodies . prototype = new NEWSBLUR . Modal ;
NEWSBLUR . ReaderGoodies . prototype . constructor = NEWSBLUR . ReaderGoodies ;
_ . extend ( NEWSBLUR . ReaderGoodies . prototype , {
2011-01-20 09:57:23 -05:00
runner : function ( ) {
this . make _modal ( ) ;
this . open _modal ( ) ;
this . $modal . bind ( 'click' , $ . rescope ( this . handle _click , this ) ) ;
} ,
make _modal : function ( ) {
var self = this ;
this . $modal = $ . make ( 'div' , { className : 'NB-modal-goodies NB-modal' } , [
2013-04-05 11:26:25 -07:00
$ . make ( 'h2' , { className : 'NB-modal-title' } , [
$ . make ( 'div' , { className : 'NB-icon' } ) ,
2013-05-22 17:05:30 -07:00
'Goodies & Extras' ,
$ . make ( 'div' , { className : 'NB-icon-dropdown' } )
2013-04-05 11:26:25 -07:00
] ) ,
2013-04-11 13:41:10 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Bookmarklet' )
] ) ,
2011-01-20 09:57:23 -05:00
$ . make ( 'div' , { className : 'NB-goodies-group' } , [
2011-01-22 21:42:58 -05:00
NEWSBLUR . generate _bookmarklet ( ) ,
2012-08-25 19:56:07 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Add Site & Share Story Bookmarklet' )
2011-02-01 03:35:11 +01:00
] ) ,
2012-10-23 12:44:10 -07:00
2016-09-20 13:05:25 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Dark theme' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://userstyles.org/styles/124890/newsblur-dark-theme-by-splike'
2020-06-24 15:16:57 -04:00
} , 'Download an alternate Dark Theme' ) ,
2016-09-20 13:05:25 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Dark theme for the web' ) ,
2018-07-08 13:15:26 -04:00
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
'Use the Stylus browser extension to install a user-contributed dark theme. Note that you should use the Stylus extension and not the Stylish extension due to privacy concerns. ' ,
$ . make ( 'a' , { href : 'https://www.ghacks.net/2017/05/16/stylus-is-a-stylish-fork-without-analytics/' } , 'You can install Stylus for Firefox, Opera, and Chrome.' )
] )
2016-09-20 13:05:25 -07:00
] ) ,
2013-04-11 13:41:10 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Mobile Apps for NewsBlur' )
] ) ,
2012-10-23 12:44:10 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : '/ios/'
} , 'See the iOS App' ) ,
2016-02-03 13:39:42 -08:00
$ . make ( 'div' , { className : 'NB-goodies-ios' } ) ,
2012-10-23 12:44:10 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Official NewsBlur iPhone/iPad App' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : '/android/'
} , 'See the Android App' ) ,
$ . make ( 'div' , { className : 'NB-goodies-android' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Official NewsBlur Android App' )
] ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://reederapp.com/ios'
} , 'Download for iPhone and iPad' ) ,
$ . make ( 'div' , { className : 'NB-goodies-reeder-ios' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Reeder for iOS' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://supertop.co/unread/'
} , 'Download for iPhone and iPad' ) ,
$ . make ( 'div' , { className : 'NB-goodies-unread-ios' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Unread for iOS' )
] ) ,
2012-10-23 12:44:10 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
2016-02-03 13:39:42 -08:00
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://addmyfeed.cubesoft.fr'
} , 'Download for iPhone' ) ,
$ . make ( 'div' , { className : 'NB-goodies-ios' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Add My Feed for iOS' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
2012-10-23 12:44:10 -07:00
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
2021-01-04 15:55:26 -05:00
href : 'https://play.google.com/store/apps/details?id=com.grazeten'
} , 'View in Play Store' ) ,
2012-10-23 12:44:10 -07:00
$ . make ( 'div' , { className : 'NB-goodies-android' } ) ,
2021-01-04 15:55:26 -05:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'GrazeTEN' )
2012-10-23 12:44:10 -07:00
] ) ,
2016-02-03 13:42:44 -08:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
2021-01-04 20:03:26 -05:00
href : 'https://www.microsoft.com/store/productId/9N85PV1RJD6V'
} , 'View in Microsoft Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'RSS Tracker for Windows 10' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
2016-02-03 13:42:44 -08:00
href : 'https://www.microsoft.com/en-us/store/apps/hypersonic/9nblggh5wnb6'
} , 'View in Windows Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Hypersonic for Windows 10 & Phone' )
] ) ,
2012-10-23 12:44:10 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
2013-03-13 16:17:19 -07:00
href : 'http://windowsphone.com/s?appid=900e67fd-9934-e011-854c-00237de2db9e'
} , 'View in Windows Phone Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
2013-07-22 13:49:13 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Feed Me' )
2013-03-13 16:17:19 -07:00
] ) ,
2013-04-24 11:56:39 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://windowsphone.com/s?appid=2585d348-0894-41b6-8c26-77aeb257f9d8'
} , 'View in Windows Phone Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
2013-07-22 13:49:13 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Metroblur' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://www.windowsphone.com/s?appid=f001b025-94d7-4769-a33d-7dd34778141c'
} , 'View in Windows Phone Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'NewsSpot' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://www.windowsphone.com/s?appid=5bef74a6-9ccc-df11-9eae-00237de2db9e'
} , 'View in Windows Phone Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Feed Reader' )
2013-04-24 11:56:39 -07:00
] ) ,
2013-10-18 14:18:43 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://www.windowsphone.com/en-us/store/app/swift-reader/e1e672a1-dd3a-483d-8457-81d3ca4a13ef'
} , 'View in Windows Phone Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-windows' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Swift Reader' )
] ) ,
2013-03-13 16:17:19 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
2012-10-23 12:44:10 -07:00
href : 'http://projects.developer.nokia.com/feed_reader'
} , 'View in Nokia Store' ) ,
$ . make ( 'div' , { className : 'NB-goodies-nokia' } ) ,
2013-07-22 13:49:13 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Web Feeds' )
2012-10-23 12:44:10 -07:00
] ) ,
2015-06-14 23:32:03 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://github.com/jrutila/harbour-newsblur'
} , 'View in Sailfish OS' ) ,
$ . make ( 'div' , { className : 'NB-goodies-sailfish' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Sailblur' )
] ) ,
2013-05-30 12:58:06 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Native Apps for NewsBlur' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://readkitapp.com'
2013-07-22 13:49:13 -07:00
} , 'Download ReadKit for Mac' ) ,
2013-05-30 12:58:06 -07:00
$ . make ( 'div' , { className : 'NB-goodies-readkit' } ) ,
2013-07-22 13:49:13 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'ReadKit' )
2013-05-30 12:58:06 -07:00
] ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://reederapp.com/mac'
} , 'Download Reeder for Mac' ) ,
$ . make ( 'div' , { className : 'NB-goodies-reeder-mac' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Reeder for Mac' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CB8QFjAAahUKEwio9f6u_bDHAhXLOIgKHdRdAuY&url=https%3A%2F%2Fitunes.apple.com%2Fus%2Fapp%2Fleaf-rss-news-reader%2Fid576338668%3Fmt%3D12&ei=IUfSVejgIcvxoATUu4mwDg&usg=AFQjCNGAqtn9qxkLqh5LfjPUZ0QFKr1mLg&sig2=yreuovrI2rRrWvzUkB4ydw&bvm=bv.99804247,d.cGU'
} , 'Download Leaf for Mac' ) ,
$ . make ( 'div' , { className : 'NB-goodies-leaf' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Leaf for Mac' )
] ) ,
2013-06-10 16:58:49 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://www.tafitiapp.com/mx/'
2013-07-22 13:49:13 -07:00
} , 'Download Tafiti for Windows 8' ) ,
2013-06-10 16:58:49 -07:00
$ . make ( 'div' , { className : 'NB-goodies-tafiti' } ) ,
2013-07-22 13:49:13 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Tafiti' )
2013-06-10 16:58:49 -07:00
] ) ,
2014-04-10 10:58:50 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-goodies-mobile-link NB-modal-submit-button NB-modal-submit-green' ,
href : 'http://apps.microsoft.com/windows/en-us/app/bluree/35b1d32a-5abb-479a-8fd1-bbed4fa0172e'
} , 'Download Bluree for Windows 8' ) ,
$ . make ( 'div' , { className : 'NB-goodies-bluree' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Bluree' )
] ) ,
2013-04-11 13:41:10 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Browser Extensions for NewsBlur' )
] ) ,
2011-02-25 13:07:08 -05:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
2011-02-01 03:35:11 +01:00
$ . make ( 'a' , {
2011-02-25 13:07:08 -05:00
className : 'NB-goodies-firefox-link NB-modal-submit-button NB-modal-submit-green' ,
2011-02-01 03:35:11 +01:00
href : '#'
2011-02-25 15:20:38 -05:00
} , 'Add to Firefox' ) ,
2011-02-25 13:07:08 -05:00
$ . make ( 'div' , { className : 'NB-goodies-firefox' } ) ,
2013-03-30 20:33:00 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Firefox: Register NewsBlur as an RSS reader' )
2011-02-25 14:04:03 -05:00
] ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://addons.mozilla.org/en-US/firefox/addon/newsblurcom-notifier/'
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-firefox' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Firefox: NewsBlur Notifier' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , 'Shows a button with the number of unread articles.' )
] ) ,
2015-03-16 12:45:52 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'div' , { className : 'NB-goodies-firefox' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Firefox: Open links to background tab' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
$ . make ( 'ul' , [
$ . make ( 'li' , [
'Open a new tab, enter ' ,
$ . make ( 'a' , { href : 'about:config' , target : '_blank' } , 'about:config' )
] ) ,
$ . make ( 'li' , [
'Search for ' ,
$ . make ( 'b' , 'browser.tabs.loadDivertedInBackground' )
] ) ,
$ . make ( 'li' , 'Double click on \'false\' to set \'Value\' to \'true\'' ) ,
$ . make ( 'li' , 'Go to NewsBlur and open a story with \'o\' and see it load in the background' )
] )
] )
] ) ,
2011-02-25 14:04:03 -05:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
2013-03-30 20:33:00 -07:00
className : 'NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://chrome.google.com/webstore/detail/rss-subscription-extensio/nlbjncdgjeocebhnmkbbbdekmmmcbfjd/details?hl=en'
} , 'Add to Chrome' ) ,
$ . make ( 'div' , { className : 'NB-goodies-chrome' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Google Chrome: Register NewsBlur as an RSS reader' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
'To use this extension, use the custom add site URL below.'
] )
] ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
href : 'https://chrome.google.com/webstore/detail/rss-subscription-extensio/bmjffnfcokiodbeiamclanljnaheeoke'
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-chrome' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Google Chrome: NewsBlur Chrome Web App' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , 'Adds one-click subscription to your toolbar.' )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
2018-07-13 15:28:07 -04:00
href : 'https://chrome.google.com/webstore/detail/newsblur-notifier-plus/nbmlfepgaaalffdmmjhpkgpjjlnpjjlp'
2015-08-17 14:14:16 -07:00
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-chrome' } ) ,
2018-07-13 15:28:07 -04:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Chrome: NewsBlur Notifier Plus' ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , 'Shows the unread count from your NewsBlur account.' )
] ) ,
2014-03-29 16:45:35 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
2015-03-16 12:45:52 -07:00
href : 'https://chrome.google.com/webstore/detail/ieeimmkgocgaaabphkgjdkophaejfnlk/'
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-chrome' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Google Chrome: Open links in background tab' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
'This extension allows you to open a link in a background tab by pressing a customizable hotkey (default \'o\' or \'v\'). This feature used to work without an extension, but it broke starting with Chrome 41.'
] )
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
2014-03-29 16:45:35 -07:00
href : 'https://chrome.google.com/webstore/detail/unofficial-newsblur-reade/hnegmjknmfninedmmlhndnjlblopjgad?utm_campaign=en&utm_source=en-ha-na-us-bk-webstr&utm_medium=ha'
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-chrome' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Google Chrome: Unofficial browser extension' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
'This extension displays all of your unread stories and unread counts.'
] )
] ) ,
2013-03-30 20:33:00 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'a' , {
className : 'NB-modal-submit-button NB-modal-submit-green' ,
href : NEWSBLUR . Globals . MEDIA _URL + 'extensions/NewsBlur Safari Helper.app.zip'
2011-02-25 15:20:38 -05:00
} , 'Add to Safari' ) ,
2011-02-25 14:04:03 -05:00
$ . make ( 'div' , { className : 'NB-goodies-safari' } ) ,
2013-03-30 20:33:00 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Safari: Register NewsBlur as an RSS reader' ) ,
2011-03-18 00:00:17 -04:00
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , [
'To use this extension, extract and move the NewsBlur Safari Helper.app ' ,
'to your Applications folder. Then in ' ,
$ . make ( 'b' , 'Safari > Settings > RSS' ) ,
2013-03-30 20:33:00 -07:00
' choose the new NewsBlur Safari Helper.app. If you don\'t have an RSS chooser, ' ,
'you will have to use ' ,
$ . make ( 'a' , { href : 'http://www.rubicode.com/Software/RCDefaultApp/' , className : 'NB-splash-link' } , 'RCDefaultApp' ) ,
' to select the NewsBlur Safari Helper as your RSS reader. Then loading an RSS ' ,
'feed in Safari will open the feed in NewsBlur. Simple!'
2011-03-18 00:00:17 -04:00
] )
2011-02-25 15:20:38 -05:00
] ) ,
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
2013-03-30 20:33:00 -07:00
$ . make ( 'a' , {
className : 'NB-goodies-safari-notifier NB-modal-submit-button NB-modal-submit-green' ,
2015-08-17 14:14:16 -07:00
href : 'https://github.com/anaconda/NewsBlur-Counter'
2013-03-30 20:33:00 -07:00
} , 'Download' ) ,
$ . make ( 'div' , { className : 'NB-goodies-safari' } ) ,
2015-08-17 14:14:16 -07:00
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Safari: NewsBlur unread count notifier' ) ,
$ . make ( 'div' , { className : 'NB-goodies-subtitle' } , 'Safari extension to show on the toolbar how many unread stories are waiting for you on NewsBlur.' )
2013-03-30 20:33:00 -07:00
] ) ,
2013-04-11 13:41:10 -07:00
$ . make ( 'fieldset' , [
$ . make ( 'legend' , 'Custom URLs' )
] ) ,
2013-03-30 20:33:00 -07:00
$ . make ( 'div' , { className : 'NB-goodies-group NB-modal-submit' } , [
$ . make ( 'input' , {
className : 'NB-goodies-custom-input' ,
2021-01-04 15:55:26 -05:00
value : 'https://www.newsblur.com/?url=BLOG_URL_GOES_HERE'
2013-03-30 20:33:00 -07:00
} ) ,
$ . make ( 'div' , { className : 'NB-goodies-custom' } ) ,
$ . make ( 'div' , { className : 'NB-goodies-title' } , 'Custom Add Site URL' )
2011-01-20 09:57:23 -05:00
] )
] ) ;
} ,
// ===========
// = Actions =
// ===========
handle _click : function ( elem , e ) {
var self = this ;
2011-01-24 09:58:16 -05:00
$ . targetIs ( e , { tagSelector : '.NB-goodies-bookmarklet-button' } , function ( $t , $p ) {
2011-01-20 09:57:23 -05:00
e . preventDefault ( ) ;
2011-01-24 09:58:16 -05:00
alert ( 'Drag this button to your bookmark toolbar.' ) ;
2011-01-20 09:57:23 -05:00
} ) ;
2011-02-01 03:35:11 +01:00
2011-02-25 13:07:08 -05:00
$ . targetIs ( e , { tagSelector : '.NB-goodies-firefox-link' } , function ( $t , $p ) {
2011-02-01 03:35:11 +01:00
e . preventDefault ( ) ;
2012-11-16 15:54:31 -08:00
var host = [
document . location . protocol ,
'//' ,
document . location . host ,
'/'
] . join ( '' ) ;
2011-02-01 03:35:11 +01:00
navigator . registerContentHandler ( "application/vnd.mozilla.maybe.feed" ,
2012-11-16 15:54:31 -08:00
host + "?url=%s" ,
2011-02-01 03:35:11 +01:00
"NewsBlur" ) ;
2012-10-19 14:57:36 -07:00
navigator . registerContentHandler ( "application/atom+xml" ,
2012-11-16 15:54:31 -08:00
host + "?url=%s" ,
2012-10-19 14:57:36 -07:00
"NewsBlur" ) ;
navigator . registerContentHandler ( "application/rss+xml" ,
2012-11-16 15:54:31 -08:00
host + "?url=%s" ,
2012-10-19 14:57:36 -07:00
"NewsBlur" ) ;
2011-02-01 03:35:11 +01:00
} ) ;
2011-02-25 14:04:03 -05:00
2011-02-25 15:20:38 -05:00
$ . targetIs ( e , { tagSelector : '.NB-goodies-custom-input' } , function ( $t , $p ) {
e . preventDefault ( ) ;
$t . select ( ) ;
} ) ;
2011-01-20 09:57:23 -05:00
}
2021-01-04 15:55:26 -05:00
} ) ;