Skip to content

Instantly share code, notes, and snippets.

View xadhix-zz's full-sized avatar

Adhithya R xadhix-zz

View GitHub Profile
//http://106.186.25.143/kuku-kube/en-3/
window.setInterval(function(){
$(box.childNodes[0]).data("type", "a").click()
}, "0")
@xadhix-zz
xadhix-zz / facebookautopoke
Created August 13, 2014 11:32
Facebook AutoPoke
window.setInterval(
function(){
var p = document.querySelectorAll("a");
for(var i=0;i<p.length;i++){
if(p[i].innerHTML.indexOf("Poke Back") >=0){
p[i].click();
}
}
@xadhix-zz
xadhix-zz / javascript_resources.md
Created July 25, 2014 12:17 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@xadhix-zz
xadhix-zz / 0_reuse_code.js
Created July 25, 2014 12:16
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@xadhix-zz
xadhix-zz / iplPlayerScraper
Created February 7, 2014 14:46
IPL Player Scraper
function GetColumns(row, expectedColumns){
var cells = row.querySelectorAll("td");
if(cells.length != expectedColumns)
{
return null;
}
var columns = [];
for(var i=0; i < cells.length;i++){
columns.push(cells[i].innerHTML);
@xadhix-zz
xadhix-zz / Facebook Lookback Downloader
Created February 4, 2014 12:18
Extracts the HD video link from the Facebook lookback page.
var xLBD = {};
xLBD.c = function (){
xLBD.f = unescape(document.querySelector("[flashvars]").getAttribute("flashvars")).substring(7);
xLBD.f = JSON.parse(xLBD.f.substring(0, xLBD.f.lastIndexOf("}") + 1)).video_data[0].hd_src;
xLBD.a = "<div style='position:absolute;top:100px;height:300px;left:15%;background:#fff;border:10px solid #000;font-size:5em;padding:100px;'>Click <a download='lookback.mp4' href='"+xLBD.f+"'>here<\/a> to download your lookBack video.</div>";
document.body.innerHTML += xLBD.a;
}
if(document.readyState == "complete")
xLBD.c();
else window.onload = xLBD.c;
@xadhix-zz
xadhix-zz / cards.js
Created March 24, 2013 06:18
Sample Gist
/**
* Created with JetBrains WebStorm.
* User: xadhix@gmail.com
* Date: 2/24/13
* Time: 7:57 PM
* To change this template use File | Settings | File Templates.
*/
var Game = {};