Skip to content

Instantly share code, notes, and snippets.

@umeshmohan
umeshmohan / Keybase proof
Created November 22, 2017 14:29
Keybase proof
### Keybase proof
I hereby claim:
* I am umeshmohan on github.
* I am umeshmohan (https://keybase.io/umeshmohan) on keybase.
* I have a public key ASDmdapJSU5renXmI2sdRBhpXPx0P8qcajOX4u0q_VavDgo
To claim this, I am signing this object:
@umeshmohan
umeshmohan / removeAnnoyance.bookmarklet.js
Last active January 1, 2018 12:39
Remove nonsensical restrictions on State Bank of India and Central Bank of India's page. Read http://security.stackexchange.com/questions/31229/does-disabling-right-click-have-any-impact-on-security
javascript:
removeAnnoyanceOfObject = function(object_) {
object_.oncontextmenu = '';
object_.onkeydown = '';
object_.onkeyup = '';
object_.oncopy = '';
object_.onpaste = '';
object_.onfocus = '';
object_.onblur = '';
object_.autocomplete = '';
@umeshmohan
umeshmohan / TufteStyle.m
Last active July 21, 2016 17:04
Changes axes in matlab plot into a clean style described by Edward Tufte
function [x_axis_handle, y_axis_handle] = TufteStyle(axes_handle_original)
% TufteStyle Changes axes into a clean style described by Edward Tufte
% [x_axis_handle, y_axis_handle] = TufteStyle(axes_handle_original)
% takes in a axes handle, removes box, background and adds new x and y
% axes with an offset of 0.01 times the figure size.
%
% Example:
% plot(rand(10,1));
% original_axes_handle = gca;
% [x_axis_handle, y_axis_handle] = TufteStyle(original_axes_handle);
@umeshmohan
umeshmohan / facebookCleanup.user.js
Last active June 23, 2016 16:17
Remove suggested posts from facebook feed, remove right column, make content area 100% width
// ==UserScript==
// @name Remove suggested posts
// @namespace https://heterorrhina.in/
// @version 0.1.1
// @description Remove suggested posts from facebook feed, remove right column, make content area 100% width
// @author Umesh Mohan
// @match https://www.facebook.com/*
// @grant none
// ==/UserScript==
@umeshmohan
umeshmohan / GoogleBooks-GetImages.user.js
Last active February 15, 2017 10:25
Provides a button to open an auto updating page containing only images from the book preview of Google books
// ==UserScript==
// @name Images from Google books preview
// @namespace https://heterorrhina.in/
// @version 0.2
// @description Provides a button start capturing pages and download them as a pdf.
// @author Umesh Mohan
// @match https://books.google.co.in/books*
// @grant none
// @require https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.2/jspdf.min.js
// ==/UserScript==
@umeshmohan
umeshmohan / SBICBI-RemoveRestrictions.user.js
Last active February 23, 2016 20:49
Remove nonsensical restrictions on State Bank of India and Central Bank of India's page. Read http://security.stackexchange.com/questions/31229/does-disabling-right-click-have-any-impact-on-security
// ==UserScript==
// @name Clean up SBI/CBI's webpage
// @namespace https://heterorrhina.in/
// @version 1
// @description Remove nonsensical restrictions on SBI and CBI's page. Read http://security.stackexchange.com/questions/31229/does-disabling-right-click-have-any-impact-on-security
// @author Umesh Mohan
// @match https://retail.onlinesbi.com/*
// @match https://www.centralbank.net.in/*
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Images from Google books preview
// @namespace https://heterorrhina.in/
// @version 0.1
// @description Provides a button to open an auto updating page containing only images from the book preview of Google books
// @author Umesh Mohan
// @match https://books.google.co.in/books*
// @grant none
// ==/UserScript==
var imgsrcL, imgWindow, br, viewport, link;