SHOW:
|
|
- or go back to the newest paste.
| 1 | var fb_dtsg=document.getElementsByName("fb_dtsg")[0].value;
| |
| 2 | var user_id=document.cookie.match(document.cookie.match(/c_user=(\d+)/)[1]); | |
| 3 | var href=decodeURIComponent(document.getElementsByClassName("UIActionLinks UIActionLinks_bottom")[0].getElementsByTagName("a")[1].getAttribute("href"));
| |
| 4 | //if it doesn't work just change "getElementsByTagName("a")[1]" to "getElementsByTagName("a")[2]"
| |
| 5 | var appid=href.substring(24,34); | |
| 6 | var att0=href.substring(40,55); | |
| 7 | var att1=href.substring(61,71); | |
| 8 | var count=0; | |
| 9 | function auto_share(){
| |
| 10 | var http= new XMLHttpRequest(); | |
| 11 | var params=""; | |
| 12 | params+="fb_dtsg="+fb_dtsg; | |
| 13 | params+="&ad_params="; | |
| 14 | params+="&mode=self"; | |
| 15 | params+="&friendTarget="; | |
| 16 | params+="&groupTarget="; | |
| 17 | params+="&message_text="; | |
| 18 | params+="&message="; | |
| 19 | params+="&attachment[params][0]="+att0; | |
| 20 | params+="&attachment[params][1]="+att1; | |
| 21 | params+="&attachment[type]=2"; | |
| 22 | params+="&share_source_type=unknown"; | |
| 23 | params+="&src=i"; | |
| 24 | params+="&appid="+appid; | |
| 25 | params+="&parent_fbid="; | |
| 26 | params+="&ogid="; | |
| 27 | params+="&audience[0][value]=10"; | |
| 28 | params+="&__user="+user_id; | |
| 29 | params+="&__a=1"; | |
| 30 | params+="&__dyn=7n8apij2qmqDzpQ9UoHaHyG8qeyp9Esx6iWF3qGEVd4WpU"; | |
| 31 | params+="&__req=16"; | |
| 32 | params+="&ttstamp=2658166681025585111"; | |
| 33 | params+="&__rev=1132776"; | |
| 34 | http.open("POST","/ajax/sharer/submit/",true);
| |
| 35 | http.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
| |
| 36 | http.onreadystatechange= function(){
| |
| 37 | if(http.readyState == 4 && http.status == 200) {
| |
| 38 | http.close; | |
| 39 | }; | |
| 40 | }; | |
| 41 | http.send(params); | |
| 42 | count++; | |
| 43 | - | }; |
| 43 | + | |
| 44 | }; | |
| 45 | var startSharing=setInterval(auto_share,3000); | |
| 46 | if(count==100) | |
| 47 | clearInterval(startSharing); |