Skip to content

Instantly share code, notes, and snippets.

Dheeraj Bhaskar dheerajbhaskar

Block or report user

Report or block dheerajbhaskar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@dheerajbhaskar
dheerajbhaskar / linkedin auto-inviter
Last active Sep 25, 2017 — forked from maksii/linkedin auto-inviter
Script to automatically add connections from "People You May Know" page
View linkedin auto-inviter
var inviter = {} || inviter;
inviter.userList = [];
inviter.className = 'button-secondary-small';
inviter.refresh = function () {
window.scrollTo(0, document.body.scrollHeight);
window.scrollTo(document.body.scrollHeight, 0);
window.scrollTo(0, document.body.scrollHeight);
};
@dheerajbhaskar
dheerajbhaskar / enableHTML5AppCache.java
Created Oct 31, 2015 — forked from jaydeepw/enableHTML5AppCache.java
Enabling HTML5 AppCache in Android Webview programatically.
View enableHTML5AppCache.java
private void enableHTML5AppCache() {
webView.getSettings().setDomStorageEnabled(true);
// Set cache size to 8 mb by default. should be more than enough
webView.getSettings().setAppCacheMaxSize(1024*1024*8);
// This next one is crazy. It's the DEFAULT location for your app's cache
// But it didn't work for me without this line
webView.getSettings().setAppCachePath("/data/data/"+ getPackageName() +"/cache");
You can’t perform that action at this time.