[BF4] Emoticon Injector - Better Battlelog Forums #111542

Sitemap
Post edited 3 x times, last by
Topicstarter
Changes common emoticons to an actual emoticon image on the forums. The images used are from my clan. If you have any emoticons that you want added let me know.
https://dl.dropboxusercontent.com/s/n8ygovkayxihypn/emoticon_injector.js

Better CSS version (not fully ready)
https://dl.dropboxusercontent.com/s/gw5he3ow9sdl5oj/emoticon_better.js

Updates
Embeded youtube video refresh bug should be fixed. Any post with an embeded video in it won't use emoticons.
Cool, a suggestion: Add the images as data:uri instead of outgoing links. Is a way faster for a user.
Topicstarter
How is that? And I also added the battlefeed.
Nice. Maybe you position the icons a bit vertically to center in the line height.
Post edited 1 x times, last by
Topicstarter
It should look center now, but I just figured out that this doesn't play nicely with embeded youtube videos. The video just refreshes forever.

Edit: fixed it.
Post edited 1 x times, last by
I am not entirely sure how this plugin works, but it seems that it's constantly refreshing the thread view. Result: Selected text is getting deselected, which turns Copy&Paste into a quick time event.
You could replace the images with this jQuery plugin:
http://os.alfajango.com/css-emoticons/
Topicstarter
Thats awesome. :D How do you include jquery plugins?
you copy this code
https://github.com/JangoSteve/jQuery-CSSEmoticons/blob/master/javascripts/jquery.cssemoticons.min.js
in your plugin file and utilize it, and the
https://github.com/JangoSteve/jQuery-CSSEmoticons/blob/master/stylesheets/jquery.cssemoticons.css
css as theme "link"
Topicstarter
kurtextrem wrote:
and the
https://github.com/JangoSteve/jQuery-CSSEmoticons/blob/master/stylesheets/jquery.cssemoticons.css
css as theme "link"


Are you talking about something like this:
http://stackoverflow.com/questions/2685614/load-external-css-file-like-scripts-in-jquery-which-is-compatible-in-ie-also
?
Post edited 1 x times, last by
Topicstarter
This version has the css emoticons. Unfortunately it will not work until you go into your browsers sources and edit the jquery.cssemoticons.css file (it doesn't matter what you do, as long as you do something to it)...still trying to figure that out.
https://dl.dropboxusercontent.com/s/gw5he3ow9sdl5oj/emoticon_better.js

And trying to highlight text should no longer be a quick time event. :P
Suggestion: Add ability to switch between emoticons from settings menu for this plugin