Creating a twitter feed for a forum (greasemonkey script)

InRomoWeTrust

Reputable
Joined
Feb 4, 2013
Messages
155
Reaction score
0
FP$
6
Hey all,

I'm attempting to write a greasemonkey script that adds a twitter feed to the top of a forum. I just want something to spit out the most recent tweet(s) from a singular twitter account. The greasemonkey side is where it gets complicated (for me) as I'm trying to alter someone else's website, not my own.

Thoughts on how I could best write this?

- Romo

-- 23 May 2013, 02:19 --

This is the page I'm looking to place the feed: http://goallineblitz.com/game/forum_thr ... um_id=5374<br /><br />-- 23 May 2013, 02:39 --<br /><br />Screw it, I'm failing here. Just not versed enough.

I'll donate $10 to a charity of choice for the first person who can write this script. 🙂
 
Re: Creating a twitter feed for a forum (greasemonkey script

You just need a script written? Will you handle the placement and styling?

edit-I'm not even sure what greasemonkey is or how it works, so nvm. I could probably write one in php, but idk what greasemonkey is.
 
Re: Creating a twitter feed for a forum (greasemonkey script

Do you need to use a greasemonkey api or is it just plain JS?
 
Re: Creating a twitter feed for a forum (greasemonkey script

JavaScript however there are certain things you can/can't do. Below are two good resources.

http://wiki.greasespot.net/Greasemonkey_Manual:API
http://commons.oreilly.com/wiki/index.p ... al_Strings<br /><br />-- 23 May 2013, 04:53 --<br /><br />This is the Twitter widget code, but I have no idea how to get it to work via a Greasemonkey script for this page: http://goallineblitz.com/game/forum_thr ... um_id=5374

Code:
<a class="twitter-timeline" data-dnt="true" href="https://twitter.com/GLBMedia" data-widget-id="337417607122677760">Tweets by @GLBMedia</a>
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+"://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>


This is where I'm at 😛

Code:
// ==UserScript==
// @name WL Twitter Feed
// @description Places a Twitter Feed of GLBMedia at the top of the WL forum
// @include http://goallineblitz.com/game/forum_thread_list.pl?forum_id=5374
// @include http://www.goallineblitz.com/game/forum_thread_list.pl?forum_id=5374
// ==/UserScript==
 
Re: Creating a twitter feed for a forum (greasemonkey script

Maybe find a greasemonkey dedicated site? Sorry, I don't know how to do this without using the twitter API. Looks like twitter is using a secret only available to them to retrieve timelines. Anywho, good luck.
 
Re: Creating a twitter feed for a forum (greasemonkey script

You know You can Just go to the widgets section of your Account and generate a Embed code.
 
Re: Creating a twitter feed for a forum (greasemonkey script

That's what the above is. I just don't know how to incorporate it into being a Greasemonkey script.
 
Re: Creating a twitter feed for a forum (greasemonkey script

Just copy and paste the embed code Into your site?.
 
Back
Top Bottom