-
-
Save toshia/1238044 to your computer and use it in GitHub Desktop.
favstarを良くするOpera用UserJS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name favstarfix | |
// @version 1.1 | |
// @namespace http://toshia.dip.jp/gm/favstarfix | |
// @description favstar display issue fix | |
// @include http://favstar.fm/* | |
// ==/UserScript | |
window.addEventListener('DOMContentLoaded', function(e){ | |
if( !document.body ) { return; } | |
try{ | |
document.getElementsByClassName("userLinks")[0].innerHTML += '<a class="navButton" href="/users/toshi_a/favs_from" title="Mad favterrorist">キチガイ</a>'; | |
} | |
catch(e){ ; } | |
try{ | |
document.getElementsByClassName("userStats")[0].getElementsByTagName("td")[0].setAttribute('style', 'width: 90px; overflow:hidden;'); | |
} | |
catch(e){ ; } | |
try{ | |
document.getElementsByClassName('friends_with_bonus')[0].getElementsByTagName('h3')[0].innerHTML = 'こいつらがふぁぼに貢ぐておくれたちだ!'; | |
} | |
catch(e){ ; } | |
try{ | |
timer = setInterval(function(){ | |
if(document.google_ads_frame1) { | |
clearTimeout(timer) | |
document.google_ads_frame1.location.href = 'http://mikutter.hachune.net/ad.html'; | |
} | |
}, 1000) | |
} | |
catch(e){ ; } | |
}, false); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment