#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
| <!doctype html> | |
| <!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
| <html> | |
| <head> | |
| <title>iOS 8 web app</title> | |
| <!-- CONFIGURATION --> |
| <!DOCTYPE html> | |
| <head> | |
| <title>Stay Standalone</title> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> | |
| <script src="stay_standalone.js" type="text/javascript"></script> | |
| </head> | |
| <body> | |
| <ul> | |
| <li><a href="http://google.com/">Remote Link (Google)</a></li> |
#Stay Standalone
A short script to prevent internal links to a "webapp" added to iPhone home screen to open in Safari instead of navigating internally.
| if (window.navigator.standalone) { | |
| var local = document.domain; | |
| $('a').click(function() { | |
| var a = $(this).attr('href'); | |
| if ( a.match('http://' + local) || a.match('http://www.' + local) ){ | |
| event.preventDefault(); | |
| document.location.href = a; | |
| } | |
| }); | |
| } |
| 'use strict'; | |
| module.exports = function(grunt) { | |
| var pkg = grunt.file.readJSON('package.json'); | |
| grunt.initConfig({ | |
| 'pkg': pkg, | |
| 'connect': { |
| config.js |
| poulton:Applications -->chrome-ssb.sh | |
| What should the Application be called? | |
| Gmail | |
| What is the url (e.g. https://www.google.com/calendar/render)? | |
| https://mail.google.com/mail/u/0/ | |
| What is the full path to the icon (e.g. /Users/username/Desktop/icon.png)? | |
| /Users/poulton/Dropbox/Rocketmade/app\ icons/gmail-orangish.icns | |
| poulton:Applications --> |
| /*! | |
| * Copyright 2013 Drifty Co. | |
| * http://drifty.com/ | |
| * | |
| * Ionic, v0.9.17 | |
| * A powerful HTML5 mobile app framework. | |
| * http://ionicframework.com/ | |
| * | |
| * By @maxlynch, @helloimben, @adamdbradley <3 | |
| * |
| { | |
| "version":2.0, | |
| "display_hints":[ | |
| { | |
| "key":"GPCAMERA_GROUP_VIDEO", | |
| "display_name":"Video Settings", | |
| "settings":[ | |
| { | |
| "setting_id":5, | |
| "widget_type":"select", |
| # shutdown Skype | |
| # Skype username - it's a login at Skype | |
| # Mac username - it's a short username of Mac OS X (ex.: dive) | |
| # <...> should be entered without brackets <> | |
| #copy this one, paste to Terminal.app and hit Enter | |
| sqlite3 "$HOME/Library/Application Support/Skype/<your_skype_username>/main.db" | |
| #then copy this one, paste to Terminal.app where sqlite3 running and hit Enter | |
| delete from Messages where dialog_partner = '<delete_history_of_conversation_with_particurarly_username>'; |