2 function run_weibo(u, p){
3 if(document.location.host=='weibo.com') {
4 // clear login dialog from weibo.
5 //check and hidden the login dialog and overlay .....
6 var els = document.querySelectorAll('div[node-type]');
8 for (i = 0; i < els.length; i++) {
9 if (els[i].hasAttribute('node-type')) {
10 if(els[i].getAttribute('node-type') == 'outer'){
15 for (i = 0; i < bbc.length; i++) {// hide all the outer.....
16 bbc[i].style.display = 'none';
20 if(document.location.pathname == '/login.php'){
22 // fills in the user name and password
23 var els = document.querySelectorAll('input[node-type]');
25 for (i = 0; i < els.length; i++) {
26 if (els[i].hasAttribute('node-type')) {
27 if(els[i].getAttribute('node-type') == 'username'){
30 if(els[i].getAttribute('node-type') == 'password'){
37 // simulating click event to login ....
38 var elss = document.querySelectorAll('a[node-type]');
40 for (i = 0; i < elss.length; i++) {
41 if (elss[i].hasAttribute('node-type')) {
42 if(elss[i].getAttribute('node-type') == 'submitBtn'){