Closed minj closed 9 years ago
Comment #1 originally posted by convincedd on 2009-12-04T02:14:25.000Z:
gm4ie works. google as bookmarklet should also. so actually the whole thing could be just bookmarklets which'll work for basically everyone i guess
Comment #3 originally posted by convincedd on 2009-12-04T13:01:09.000Z:
opera userscript works fine
Comment #4 originally posted by convincedd on 2009-12-04T13:09:33.000Z:
chrome userscript works as well
Comment #5 originally posted by convincedd on 2009-12-04T13:43:49.000Z:
basic bookmarklet code:
javascript:(function(){var href=document.location.href; if (href.search(/\/World\/Series\/Default.aspx/)!=-1 || href.search(/\/World\/Series\/YouthSeries.aspx/)!=-1) { if (document.getElementById('sidebar').getElementsByTagName('p')[0].parentNode.innerHTML.search('yaplet')==-1){ var channel="hattrick.org/league"+href.replace(/.+leagueLevelUnitID=/i, "").match(/^\d+/)[0]; var nick=document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; var sidebox=document.getElementById('sidebar').getElementsByTagName('p')[0].parentNode; window.open('http://embed.yaplet.com/?nick='+nick+'&channel='+channel,'','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }}})();doIt('');void('');
Comment #6 originally posted by convincedd on 2009-12-04T13:54:09.000Z:
basic bookmarklet v2
javascript:(function(){var href=document.location.href; if (href.search(/\/World\/Series\/Default.aspx/)!=-1 || href.search(/\/World\/Series\/YouthSeries.aspx/)!=-1) { var channel="hattrick.org/league"+href.replace(/.+leagueLevelUnitID=/i, "").match(/^\d+/)[0]; var nick=document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; var sidebox=document.getElementById('sidebar').getElementsByTagName('p')[0].parentNode; window.open('http://embed.yaplet.com/?nick='+nick+'&channel='+channel,'','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else{alert('Not a league page')}})();doIt('');void('');
Comment #7 originally posted by convincedd on 2009-12-04T14:49:39.000Z:
user.script 0.1
for gm4ie add to extensions.list [Add yaplet_to_hattrick_league] Name=yaplet_to_hattrick_league Domains=hattrick.org ScriptFileName=yaplet_to_hattrick_league.user.js version=0.1
Comment #8 originally posted by fkvulturul on 2009-12-05T16:43:48.000Z:
federation page source with FT
Comment #10 originally posted by convincedd on 2009-12-06T14:40:37.000Z:
new bookmarklet:
javascript:(function(){var href=document.location.href;var icon = "http://hattrick.org/App_Themes/Simple/logo_green.png"; if (href.search(/\/World\/Series\/Default.aspx/i)!=-1) { var channel="hattrick.org/league"+href.replace(/.+leagueLevelUnitID=/i, "").match(/^\d+/)[0]; var nick=document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; window.open('http://embed.yaplet.com/?title='+channel+'&yapletlogo='+icon+ '&nick='+nick+'&channel='+channel+'','','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else if (href.search(/\/World\/Series\/YouthSeries.aspx/i)!=-1) { var channel="hattrick.org/youthleague"+href.replace(/.+YouthLeagueId=/i, "").match(/^\d+/)[0]; var nick=document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; window.open('http://embed.yaplet.com/?title='+channel+'&yapletlogo='+icon+ '&nick='+nick+'&channel='+channel+'','','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else if (href.search(/Club\/Matches\/Match.aspx\?matchID=/i)!=-1) { var channel = "hattrick.org/match"+href.replace(/.+matchID=/i, "").match(/^\d+/)[0]; var nick = document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; window.open('http://embed.yaplet.com/?title='+channel+'&yapletlogo='+icon+ '&nick='+nick+'&channel='+channel+'','','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else if (href.search(/\/World\/Cup\/CupMatches.aspx/i)!=-1 || href.search(/\/World\/Cup\/.CupID=/i)!=-1) { var channel = "hattrick.org/nationalcup"+href.replace(/.+CupID=/i, "").match(/^\d+/)[0]; var nick = document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; window.open('http://embed.yaplet.com/?title='+channel+'&yapletlogo='+icon+ '&nick='+nick+'&channel='+channel+'','','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else if (href.search(/\/Community\/Federations\/Federation.aspx\?AllianceID=/i)!=-1) { var channel = "hattrick.org/federation"+href.replace(/.+AllianceID=/i, "").match(/^\d+/)[0]; var nick = document.getElementById('teamLinks').getElementsByTagName('a')[0].innerHTML; window.open('http://embed.yaplet.com/?title='+channel+'&yapletlogo='+icon+ '&nick='+nick+'&channel='+channel+'','','width=300,height=500,resizable=yes,scrollbars=no,toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else{alert('Not a league, match, cup or federation page')}})();doIt('');void('');
Comment #11 originally posted by convincedd on 2009-12-06T14:43:24.000Z:
new greasemonkey script:
for gm4ie add to extension.list: [Add leagueandmatchchat] Name=leagueandmatchchat Domains=hattrick.org Domains=hattrick.interia.pl Domains=hattrick.ws ScriptFileName=leagueandmatchchat.user.js version=0.1
Comment #12 originally posted by convincedd on 2009-12-06T15:11:18.000Z:
might also work with safari and greasekit: http://8-p.info/greasekit/
Comment #13 originally posted by convincedd on 2009-12-21T15:45:11.000Z:
scripts uploaded to: http://code.google.com/p/foxtrick/source/browse/branches/chatscripts/
Comment #14 originally posted by ryanlimigrate on 2010-12-11T08:25:37.000Z:
As I see it this feature is implemented.
Status: Fixed Labels: Type-Enhancement
Original issue 510 created by convincedd on 2009-12-04T00:01:40.000Z:
greasemonkey code basic text with opera&firefox todo: gm4ie, chrome?