コードそのものを書いていただけると一番うれしいです
300pt上乗せします
opera でテストしてみましたが、以下のようなコードではいかがでしょう?
※ 改行は削除し1行にしてURLにコピペして確認してます。
-----------
javascript:(function (){
var iframe = document.createElement('iframe');
iframe.name='hatena_login';
iframe.src='http://www.hatena.ne.jp/logout';
iframe.style.display='none';
document.body.appendChild(iframe);
iframe.onload=function(){
var f = document.createElement('form');
f.action='https://www.hatena.ne.jp/login';
f.method='post';
f.target='hatena_login';
f.style.display='none';
var t = document.createElement('input');
t.name='name';
t.value='[サブID]';
f.appendChild(t);
t = document.createElement('input');
t.name='password';
t.value='[パスワード]';
f.appendChild(t);
t = document.createElement('input');
t.name='location';
t.value='http://q.hatena.ne.jp/';
f.appendChild(t);
document.body.appendChild(f);
f.submit();
iframe.onload=function(){
iframe.onload=function(){
iframe.parentNode.removeChild(iframe);
location.reload();
};
};
};
})();
opera でテストしてみましたが、以下のようなコードではいかがでしょう?
※ 改行は削除し1行にしてURLにコピペして確認してます。
-----------
javascript:(function (){
var iframe = document.createElement('iframe');
iframe.name='hatena_login';
iframe.src='http://www.hatena.ne.jp/logout';
iframe.style.display='none';
document.body.appendChild(iframe);
iframe.onload=function(){
var f = document.createElement('form');
f.action='https://www.hatena.ne.jp/login';
f.method='post';
f.target='hatena_login';
f.style.display='none';
var t = document.createElement('input');
t.name='name';
t.value='[サブID]';
f.appendChild(t);
t = document.createElement('input');
t.name='password';
t.value='[パスワード]';
f.appendChild(t);
t = document.createElement('input');
t.name='location';
t.value='http://q.hatena.ne.jp/';
f.appendChild(t);
document.body.appendChild(f);
f.submit();
iframe.onload=function(){
iframe.onload=function(){
iframe.parentNode.removeChild(iframe);
location.reload();
};
};
};
})();
これはそうとうヤバイっす。できました…! 感動。感動
コメントも読みました。細かい配慮ありがとうございます
これはそうとうヤバイっす。できました…! 感動。感動
コメントも読みました。細かい配慮ありがとうございます