Search posterous

Search all posts and users. Type a name, type a favorite song title, whatever! See what comes up.
  

More posterous blogs











More recommended blogs »

Here are posterous posts filed under greasemonkey...

mlevit says...

Changelog:

  • Fixed: Changing the @include in v2.19 actually stopped the script from working anywhere but the homepage (i.e. all other months but the current one would no longer work).
  • Added: New showSearchAlias array. Some shows may show up different on TV Calendar than they do on ezRSS (TV Calendar displays Law & Order: SVU, ezRSS displays Law & Order: Special Victums Unit). This new array can hold the TV Calendar version of the show name and the ezRSS version of the show name. If some shows like the Law & Order: SVU have this difference, you can add them to the new showSearchAlias array.

Detailed Description:

A problem was pointed out by a user that existed with the ezRSS search link. There is a discrepancy between the show name displayed by Calendar for TV and ezRSS. Shows like Law & Order: SVU are actually displayed as Law & Order: Special Victims Unit on ezRSS. What this means is the ezRSS search link my script would produce would insert the show name Law & Order: SVU, which would yield no results on ezRSS. A secondary problem was also found where instead of the ampersand sign (&) the script would retrieve (&) which is the HTML code for the ampersand used in order for the actual symbol to be displayed on the webpage. For this and the problem before I came up with a few fixes.

To fix the ampersand symbol a new HTMLSymbol "class" was made consisting of two variables. html represented the HTML code (e.g. &) and symbol represented the actual symbol (e.g. &):

function HTMLSymbol ()
{
    this.html = "";
    this.symbol = "";
}

On startup a new array would be created of type HTMLSymbol and populated:

var htmlNameToSymbol = new Array();
htmlNameToSymbol[htmlNameToSymbol.length] = new HTMLSymbol();
htmlNameToSymbol[htmlNameToSymbol.length - 1].html = "&";
htmlNameToSymbol[htmlNameToSymbol.length - 1].symbol = "&";
 

From there just after the show name is retrieved a for loop would run and replace all HTML codes that should really be symbols:

for (k = 0; k < htmlNameToSymbol.length; k++)
{
    showName = showName.replace(htmlNameToSymbol[k].html, htmlNameToSymbol[k].symbol);
    episodeName = episodeName.replace(htmlNameToSymbol[k].html, htmlNameToSymbol[k].symbol);
}

To fix the first problem of different show names I used a very similar method to the above problem. Firstly I created a ShowSearchAlias "class" with two variables. tvCalendar which is the show named displayed by Calendar for TV and search which is the show name displayed by ezRSS:

function ShowSearchAlias ()
{
    this.tvCalendar = "";
    this.search = "";
}

Again on startup a new array is created of type ShowSearchAlias and populated with shows with name discrepancies:

var showSearchAlias = new Array()
showSearchAlias[showSearchAlias.length] = new ShowSearchAlias();
showSearchAlias[showSearchAlias.length - 1].tvCalendar = "Law & Order: SVU";
showSearchAlias[showSearchAlias.length - 1].search = "Law & Order: Special Victums Unit";
showSearchAlias[showSearchAlias.length] = new ShowSearchAlias();
showSearchAlias[showSearchAlias.length - 1].tvCalendar = "Law & Order: CI";
showSearchAlias[showSearchAlias.length - 1].search = "Law & Order: Criminal Intent";

Then it's a simple matter of running a for loop and replacing the show name from Calendar for TV with the show name for ezRSS:

for (var i = 0; i < showSearchAlias.length; i++)
{
    if (showSearchAlias[i].tvCalendar == showName)
    {
        showName = showSearchAlias[i].search;
        break;
    }
}

Thanks

TV Calendar Reloaded Now a multi tool for www.pogdesign.co.uk/cat. Cleans up the website removing links and text, adds torrent search links and formatted file names for each episode for easy copy and renaming.

Filed under: greasemonkey

mlevit says...

Changelog:

  • Fixed: Some coding errors.
  • Updated: When the user searches the search button use to receive focus as a workaround for google.com. Instead of that and due to Google's new minimalistic homepage, instead of changing focus to another object other than the search box, the focus is just removed from the search box without being given to another object on the screen
Detailed Description:

Not too long ago a user encountered a defect with the script when running it on Google's new minimalistic homepage. This new homepage was one that had a Google logo and the search box but nothing else, not even the Google Search and I'm Feeling Lucky buttons. This is where the script crashed and burnt.

My script looks for those buttons for two reasons. One so it can change their value to suit the site you've changed to (e.g. changing to search Wikipedia would make the buttons value Wikipedia Search) and two it was a simple workaround for google.com. There was a slight problem with google.com where for some reason hitting the ENTER key wouldn't actually search the site you have chosen but would still run Google's I'm Feeling Lucky search. My simple work around was when the user hit the ENTER key I would change the cursor focus to the search button.

searchButton.focus();

But because this new homepage removed the search button the script would crash firstly at trying to set the buttons value to match the search site but secondly after fixing that error in some of the previous 1.7 beta versions it would still search using Google's I'm Feeling Lucky. After some time I came up with a simple workaround. Instead of changing the focus to another object on the screen (I even tried setting it to the logo which didn't work) I simple removed the focus from the search box completely.

searchBox.blur();

It was simple and effective. The search box no longer had the focus and I didn't have to worry about the search button being present or not.

Thanks

Google Homepage Reloaded Modifies the Google homepage to imitate go.infinise.com giving the user the ability to click the Google logo or press the UP key and change the website they search (i.e. Bing, Wikipedia, Twitter and YouTube)

Filed under: greasemonkey

mlevit says...

Changelog:

  • Fixed: Videos that are displayed as search results now have correct background colours (e.g. grey, white, grey, white)

Detailed Description:

This was a minor release with a simple fix to a problem I had found. Really it wasn't that big of a problem. Just when I removed videos from the list and left only the ones that matched the users search query sometimes you wouldn't have the same pattern of alternating colours that YouTube had in the first place (i.e. every even numbered video has a grey background, every odd numbered video has a white background).

The fix was a simple one. A variable was defined and set to the CSS class "video even" which gives the movie a grey background. Then every time a movie is a successful match to the search query its CSS class would be changed to either "video even" if the previous one was "video odd" or "video odd" if the previous line was "video even".

//Variable decleration
var videoCSSClass = "video even";

//more code here...

//Remaining code
videos[i].setAttribute("class", videoCSSClass);

if (videoCSSClass == "video even")
{ 
    videoCSSClass = "video odd";
}
else
{
    videoCSSClass = "video even";
}

Thanks

YouTube Favourites Search Allows users to search their favoured YouTube videos from the Favourites page

Filed under: greasemonkey

mlevit says...

Yesterday I was a little bored so I decided to finally make a script to obtain a feature I had wanted on YouTube for some time now. So I made my own Greasemonkey script that allows users to search their YouTube Favourites.

I've been looking around for something like this and haven't found anything, but I know this feature is one that people are looking for. If you use favourite videos on YouTube then you'd appreciate this script.

Enjoy: YouTube Favourites Search

Thanks

Filed under: greasemonkey

HikiCulture says...

Here are the most essential Mozilla Firefox extensions I've come across thus-far:

AdBlock Plus (*NOTE* I highly recommend that you install the EasyPrivacy filter subscription for this.)

AdBlock Plus: Element Hiding Helper (*NOTE* I don't understand why this feature does not come with AdBlock Plus by default - it is nearly as good as AdBlock Plus, and is developed by the same developer.)

Clippings

Greasemonkey

Hide Menubar (*NOTE* This extension will soon be obsolete since the current beta version of Mozilla Firefox has native support for hiding the menubar.)

Image Zoom

Inline Google Definitions

Is.GD Creator (*NOTE* I just recently discovered this; highly recommended.)

Nightly Tester Tools (*NOTE* Nightly tester tools is only recommended if you enjoy using nightly/beta builds of Firefox.)

NoScript (*NOTE* This extension is overkill for some users, but for many, it is considered as being an essential add-on.)

Rotate Image

Screengrab

Site Launcher


There you go. That is my list of the most essential Mozilla Firefox extensions I've come across thus-far.

Each of the add-ons I listed are hot-linked to their respective download page at addons.mozilla.org. Simply click on the add-on name to read the full description and reviews; this will ultimately help you decide whether you want to install a particular extension or not.

Filed under: Greasemonkey

plord says...


Greasemonkey - Add on
Real-Time Google

running Firefox

Filed under: greasemonkey

MailChimp says...

Facebook is pretty awesome, but it is far from perfect. More than once, I’ve heard complaints about some of Facebook’s technical aspects. Sadly, Facebook isn’t open-sourced, so users can’t change anything themselves – or can they?

By using simple pieces of Javascript code, or by applying Firefox Greasemonkey userscripts, users can change the appearance and workings of Facebook themselves.

(via MakeUseOf)

Filed under: greasemonkey

ape47 says...

Script Summary:
Removes any and all ads from Facebook.
Version: 1.4

Filed under: Greasemonkey

ape47 says...

 

Filed under: Greasemonkey

ape47 says...

Features
  • pbtweet shows conversation chain baloons based on in_reply_to_status_id.
  • User setting for loading number of conversation tweets.
  • Low bandwith usage with using JSON.
  • Enable RT/via style quoting tweets.
  • Redundant tweets removing
  • Picture shared with twitPic.com, tumblr.com, brightkite.com ,MovaPic.com, 12seconds and bcphotoshare.com are placed on twitter.com as badge.
  • Automatically [more] page inserted when you scroll down to page bottom.
  • Automatically new tweets insert on the top of timeline in each minutes.
  • Shorten URL expanding for tinyurl.com, bit.ly, ff.im, twurl.il and is.gd.
  • Translating tweets into your language.
  • Growl notification on Fluid.app
via pbtweet

 

Filed under: Greasemonkey