Posts

Showing posts from January, 2012

Open a Link in new tab/window without right-click

This trick is especially useful on sites like irctc.co.in , ultimatix and others which have right-click disabled on them (for some reasons).  Basically, these sites use JavaScript to do this. This can be broken by one-liner   JavaScript into address bar(where you enter site name). Just Write this on address bar of irctc :  javascript:void(document.oncontextmenu=null) Well,   I have found a very simple way that works on most sites. Just press CTRL key and left-click on the link , it will open in a new tab/window(depending on your browser settings.).  So , it has two benefits:          You can open links freely in sites that have disabled right-click        When link is opened in new tab, it does not switches over automatically (which I feel is irritating normally) . Enjoy the all-powerful CTRL key.  Keep Exploring.   Keep Discovering.

Lock computer (quick ways)

When you need to go for a while, you don't have to log-off and then again wait to login. You can do it in many quick ways. Here are these : 1. WindowsKey + L To immediately lock your computer, simultaneously press the Windows logo key (typically beside the Spacebar) and the l key (the letter L). 2. Make Desktop Shortcut Just for a single time do this. Then, you can double-click the icon to lock your machine.   -->Right-click the desktop, select New, and then Shortcut. This will open the Create Shortcut Wizard. -->For the location of the item, type:   rundll32.exe user32.dll,LockWorkStation Click Next. -->Type an appropriate name for this shortcut, and then click Finish. Now,you just have to double click this to lock machine. 3. ctrl+alt+del Press Ctrl-Alt-Del, and then click Lock this computer or Lock Computer. Have a quicker way, share...

Run a Program as Admin/administrator

Image
Some programs or some commands (like 'sfc') require you to run them through admin account only(not with d one having admin privileges).  You are  logged on with an account with admin privileges , but not as administrator. So, how to do it? (for windows 7) 1. Locate the file you want to run as admin. (eg. cmd.exe) through start menu. 2. right click and choose "run as admin" OR select the file and press Ctrl+Shift + Enter.  press alt+y when a dialog box appears. File will start in admin mode. Screenshots