or, How I Got to Become a Firefox Extension Developer. 🙂
What’s that ?
Getting tired of typing [-a-r-t-i-s-t-] etc… on last.fm‘s journals & forums for the nth time, I quickly hacked another Firefox extension I was using, BBCodeXtra, to make last.fmCode.
It allows you select a type & select a string (“mll” for instance) and right-click>last.fmCode>User and you get “[user]mll[/user]”. Idem for an artist name, a tag name etc… You can play with the clipboard submenu too, and also the eXtra one.
I left the BBCode there, so bolding, making links, changing colors, etc. just need a few clicks.
Before you download
Warning: beta version yadda yadda (…) you’ve been warned, but it works for me.
An important bug remains, though, it often won’t work if BBCodeXtra is also installed, so please disable or uninstall it first. Now, if you Firefox wizards know what can be changed to avoid the conflict, pleaaaaase let me know in the comments – TIA !
To do
- Fix bug quoted above (if really confirmed)
Terms of use
It is strictly forbidden to use this extension to make useless polls / lists that clutter artists pages, or you’ll get stuffed to death with melted useless lists.
Download
- follow this link to download last.fmCode on addons.mozilla.org (hence no security warnings)
Support
You can contact me through my last.fm profile.
Changelog
Changelog for versions 0.5 and later is there.
0.4
- fixed: no more “no text in clipboard, please copy something first” when clipboard content unneeded (thanks nokie)
- changed: changes for more torough -future?- localization
- changed: [quote=”the_user”] doesn’t work on last.fm. Changed it into [quote][b]Quoth [user]the_user[/user][/b]:\n
- added: remove spaces before and after cliboard content and selected text
0.3a
- fixed: uncorrect MaxAppVer
0.3
- added: strike
- added: subscript
- added: superscript
- added: group (thanks spacefish for the info)
- added: place (thanks spacefish for the info)
0.21a
- fixed: Album from clipboard
- fixed: Track from clipboard
- fixed: Make selection album (artist will be asked) did not work
- fixed: Make selection track (artist will be asked) did not work (thanks Jon for the headsup)
- fixed: Album wizard: album & artist switched (thanks Jon for the headsup)
- fixed: Track wizard: track & artist switched (thanks Jon for the headsup)
- fixed: options OK button not working (thanks Cal for the headsup)
0.1
- first release
The track option, use artist as selection, isn’t working at all, and the track wizard has the artist and track parts switched (I think). I entered Tool and Vicarious and got this: [track=Vicarious]Tool[/track]. Does that come out as “Tool – Vicarious”??
Oops… Neds a fix tomorrow I guess.. Thanks for the feedback Jon.
Does the ‘OK’ button in the settings do anything? It does nothing on my computer. Good code though really nice looking might i add! great work.
Now at version 0.21, see original post for the changes
Updated to v0.3
Yay! Best. Script. Ever. Thanks for the mention. 🙂
Updated to v0.4
Added terms of use. 😉
Haha! Classic. 🙂
Updated to v0.5
It works!! Very nicely too if I might say 🙂
Yay ! Now on UMO. The reviewer sent this very encouraging word:
World domination is for very, very soon. 😛
I was in Stone Age using BBcode without your script. Works very well !
Thanks 🙂
Added a wished feature: Have the contextual menu appear only when on the last.fm domain.
Don’t know how to implement it for now, though.
Hey, there. Wondered if you could add [*font=string][*/font] (where string is a font name) to a wizard on the extra > menu. I don’t see it there now and it seems like the only thing that’s missing!
Thanks! 🙂
Ddin’t know about this feature. I’ll add it soon.
In Firefox version 1.5.0.6, last.fmCode seems to work with BBCodeXtra installed and turned on. Not sure what the problem is. BTW, I didn’t change anything in the browser.
Thanks for this extension! I used it as a base to create a similar extension for gametz.com’s forum markup.
Thanks!
Note to self: add the [label][/label] feature
Updated to v0.6
Thank you! 😀
i can’t find v0.61 !
added temporary link until v0.61 gets out of the pipe at addons.mozilla.org
thanks 🙂
Ìîé ïà ðåÃü ïèêà ïåð, Ãî çà êà êèì åìó ýòî ÿ äî ñèõ ïîð ÃÃ¥ ïîéìó. ß êðà ñèâà ÿ,
ñîáëà çÃèòåëüÃà ÿ (Ãó âñ¸ â ýòîì äóõå), à îà âñå ðà âÃî ïîïåðñÿ Ãà òðåÃèÃã-ìà ñòðå, ãäå ó÷à ò ñîáëà çÃÿòü :(.
Ñêà æèòå ëþäè Ãà êà êîé õ.. åìó ýòî?
Huh ? 🙂
MLL, do you think you could change the selection letter for last.fmCode to ‘f’ from ‘l’? The new version of firefox has a “languages” selection on the right-click menu, for which ‘l’ is the selection letter. That means that instead of just typing l-c-m, for instance, to insert a live link, you now have to type in l–c-m. If you switched the letter, one could just type f-c-m and save by not having to hit the enter key over and over again.
Doable. As soon as time happens. Maybe you’d prefer this on your own personal edition? 🙂
Ehy thanks! I was just searching this extension 🙂
I’d like a better logical menu organization…
(uhm and what about removing the menu icon? 🙂
In honour of last.fm’s buyout by CBS, I’m pleased to release v0.7. Enjoy. 🙂