javascript:list = document.getElementById('friend_add_main').parentNode.childNodes;for(var i=1; i<list.length; i++) { id = list[i].id.substr(11); CSS.removeClass($("addToFLRequests_"+id), 'addToFLRequests_Hidden');document.getElementById("add_to_friend_list_widget_select_"+id).selectedIndex = 1;document.getElementById("add_to_friend_list_widget_select_"+id).onchange();handle_request_click("friend_add", id, "accept");}
This, like the all-in-one-step listed here: http://ibneko.livejournal.com/740242.html, adds each request into the first friend list (if you want the second friends list, change ".selectedIndex = 1" to ".selectedIndex = 2". Third list, do 3, etc.), then confirms each person as a friend.
Facebook quick-friend-accept-script
Mar. 19th, 2008 11:58 pmBecause when you have 30+ new friends on facebook, all from one source, and you _reaaaally_ don't want to slowly accept each and every one:
copy/paste into your browser address bar:
set them all to friend list 1 (limited profile)
Then Accept everyone.
Or you can do it all in one step, if you're only doing one, limited profile list (I did 2 per person, so..):
Here's the code, reformatted to read nicer:
Props to TJ M. for coming up with most of it. I was being relatively lazy.
copy/paste into your browser address bar:
set them all to friend list 1 (limited profile)
javascript:list = document.getElementById('friend_add_main').parentNode.childNodes;for(var i=1; i<list.length; i++) { id = list[i].id.substr(6); document.getElementById("add_to_friend_list_widget_select_"+id).selectedIndex = 1;document.getElementById("add_to_friend_list_widget_select_"+id).onchange();}
Then Accept everyone.
javascript:list = document.getElementById('friend_add_main').parentNode.childNodes;for(var i=1; i<list.length; i++) { id = list[i].id.substr(6); click_add_friend(id, 0, 0, '', 'accept', 'Confirm', 'Does Not Attend', 'I Don\'t Know');}
Or you can do it all in one step, if you're only doing one, limited profile list (I did 2 per person, so..):
javascript:list = document.getElementById('friend_add_main').parentNode.childNodes;for(var i=1; i<list.length; i++) { id = list[i].id.substr(6); document.getElementById("add_to_friend_list_widget_select_"+id).selectedIndex = 1;document.getElementById("add_to_friend_list_widget_select_"+id).onchange();click_add_friend(id, 0, 0, '', 'accept', 'Confirm', 'Does Not Attend', 'I Don\'t Know');}
Here's the code, reformatted to read nicer:
javascript:
list = document.getElementById('friend_add_main').parentNode.childNodes;
for(var i=1; i<list.length; i++)
{
id = list[i].id.substr(6);
document.getElementById("add_to_friend_list_widget_select_"+id).selectedIndex = 1;
document.getElementById("add_to_friend_list_widget_select_"+id).onchange();
click_add_friend(id, 0, 0, '', 'accept', 'Confirm', 'Does Not Attend', 'I Don\'t Know');
}
Props to TJ M. for coming up with most of it. I was being relatively lazy.
Random one line javascript "filter"
Feb. 28th, 2008 01:08 amGlobal:
Restricted to divs:
Because I was somewhat bored. Find a page that has bad words, copy and paste the above line into your browser location and hit enter.
In short, it grabs the document, searches for elements by tags and loads that into an array, then steps through the array, replacing any instances of "fuck, cunt, bitch, cock, shit, piss", with "bubbles".
javascript:var%20d=document;var%20s=d.getElementsByTagName("*");for(var%20i=0;i<s.length;i++){s[i].innerHTML=s[i].innerHTML.replace(/fuck|cunt|bitch|cock|shit|piss/ig,'bubbles');}
Restricted to divs:
javascript:var%20d=document;var%20s=d.getElementsByTagName("div");for(var%20i=0;i<s.length;i++){s[i].innerHTML=s[i].innerHTML.replace(/fuck|cunt|bitch|cock|shit|piss/ig,'bubbles');}
Because I was somewhat bored. Find a page that has bad words, copy and paste the above line into your browser location and hit enter.
In short, it grabs the document, searches for elements by tags and loads that into an array, then steps through the array, replacing any instances of "fuck, cunt, bitch, cock, shit, piss", with "bubbles".
Awesome Javascript
Nov. 11th, 2006 07:42 pmjavascript:R=0; x1=.1; y1=.05; x2=.25; y2=.24; x3=1.6; y3=.24; x4=300; y4=200; x5=300; y5=200; DI=document.getElementsByTagName(%22img%22); DIL=DI.length; function A(){for(i=0; i-DIL; i++){DIS=DI[ i ].style; DIS.position='absolute'; DIS.left=(Math.sin(R*x1+i*x2+x3)*x4+x5)+%22px%22; DIS.top=(Math.cos(R*y1+i*y2+y3)*y4+y5)+%22px%22}R++}setInterval('A()',5); void(0)
By way of
![[livejournal.com profile]](https://www.dreamwidth.org/img/external/lj-userinfo.gif)
Also from him, "Jesus Camp" has been closed
Also, the one-second condom [http://www.prontocondoms.co.za/index.htm] (Pronto Condoms). Includes demo movie.