Skip to content

Instantly share code, notes, and snippets.

@prasincs
Created February 21, 2010 07:54
Show Gist options
  • Select an option

  • Save prasincs/310198 to your computer and use it in GitHub Desktop.

Select an option

Save prasincs/310198 to your computer and use it in GitHub Desktop.
// ==UserScript==
// @name Show all assignments moodle
// @namespace http://nextdoorhacker.com/projects
// @include http://bowtie.cc.trincoll.edu/course/view.php?id=408
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js
// ==/UserScript==
jQuery("li:has(a)", "tr.section:even").each(function(index,value){
var link = jQuery(this).find("a").attr("href");
var loc = jQuery(this);
$.get(link, function(data){
loc.append(jQuery(data).find("#intro"));
});//get
})//each
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment