10.02.08

Fixing the Home Link in the Telem System (OpenU)

Posted in Greasemonkey, Projects at 11:55 am by Guy

This post can be helpful for students of the Open University of Israel. As a student there, I found it very annoying that the link to the courses’ homepage in the Telem system is a JavaScript link. This prevents it from opening in a new tab, and thus require various workarounds to get back to the homepage in a different tab. So, a little while ago I wrote a little Greasemonkey script to fix it.

// telem.user.js
// version 0.1 
// 2008-01-01
// Copyright (c) 2008, Guy Rutenberg
// Released under the GPL license
// http://www.gnu.org/copyleft/gpl.html
//
// ==UserScript==
// @name          OpenU's Telem - Fix Home Button
// @namespace     http://www.guyrutenberg.org/
// @description   Fixes the home button link in the telem system of the OpenU.
// @include       http://maagar.openu.ac.il/opus/*
// ==/UserScript==
 
 
home = document.getElementById('home');
if (home) {
	re = /javascript:find_home_page\('(.*?)','(.*?)',/
	match = re.exec(home.href)
	home.href = 'http://telem.openu.ac.il/courses/'+match[2]+'/'+match[1]
}

This script changes the link to a regular non-JavaScript link. I’ve tested it for more than a month now, without finding any bugs. However if you find something, or have any suggestion, please comment.

Update: See A Greasemonkey Fix to the Top Menu in Sheilta (Open University), it has a fix for the top menu bar in the Sheilta system

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google

6 Comments »

  1. Peleg Michaeli said,

    February 16, 2008 at 9:36 pm

    Great! :-)

    Keep doing your great job there…

  2. יואב said,

    March 18, 2008 at 11:10 am

    לא הבנתי מה בדיוק התסריט מתקן ? הלינק לקורס בשאילתה עדיין מקולקל…

  3. Guy said,

    March 18, 2008 at 7:18 pm

    יואב,
    הלינק אינו שבור, אתה פשוט מסתכל על הלינק הלא נכון. התסריט מתקן את הלינק לדף הבית במערת התלם (ולא בשאילתא). הלינק המדובר מופיע בדפים של הפורום, ובשאר הדפים הפנימיים, של אתר הקורס בתלם.

    בברכה,
    גיא

  4. יואב said,

    March 20, 2008 at 12:03 pm

    אוקיי, הבנתי. אולי תתקן את כל הלינקים באתר של או”פ ? הלינקים בשאילתה מציקים לי מאוד.

  5. Guy said,

    March 20, 2008 at 12:32 pm

    אני יכול לנסות להסתכל על זה. אילו לינקים מפריעים לך?

  6. יואב said,

    March 20, 2008 at 4:15 pm

    כשנכנסים בשאילתה לקורסים ואז לקורס מסויים אז כל הלינקים שם הם כתובים בג’אווה סקריפט.
    הלינק היחיד שבאמת מציק לי זה “לאתר הקורס בתלם”.

    זה לינק היחיד שפותח חלון בגודל מלא, את שאר הלינקים אפשר להשאיר כמו שהם.

Leave a Comment