Quantcast
Channel: Amagob IT Blog
Viewing all articles
Browse latest Browse all 13

schrome – Simplified web page in chrome | web page without no bars

$
0
0

The script opens the link of a webpage in the form of the simplified Chrome app (without the url bar, bookmark and tabs) in a new windows. If you use a youtube link, it would use the _popup in the link to remove all distraction from the page (suggested videos, comments etc) and resized to fit the video. Just make sur the path to your chrome is the same as mine. To check just do ps -ax and if you have any chrome application running, the path will show.

# usage in linux command line: schrome https://www.youtube.com/watch?v=cU_m1OjeJ48
#!/bin/bash

if [[ $1 == *"youtube.com/watch"* ]]
then
 url=`echo $1 | sed -e 's/watch/watch_popup/g'`;
else
 url=$1;
fi

echo $url;

/opt/google/chrome/chrome --new-window --app=$url

 

youtube


Viewing all articles
Browse latest Browse all 13

Latest Images

Trending Articles





Latest Images