yen867gmail.com / patch insc

// ==UserScript==
// @name           patch insc
// @namespace      
// @description    add lesson detail link 
// @author         alexw
// @include        http://insc.tp.edu.tw/cls/ClsShowLst.aspx*
// @version        1.0
// @require        https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js
// ==/UserScript==

$('[id$=_lnVIEW]').each(function(i){
  var cid = $(this).attr('href').match(/(CLS.{17})/)[1];
  var lnk = "/index/ClsShowLstB.aspx?stu=VIEW&bid=" + cid;
  var index = ("0" + (i + 1)).slice(-2);
  var stuid = "ctl00_ContentPlaceHolder1_DataList1_ctl" + index + "_lnStu";
  $('#' + stuid + '').attr('href', lnk);
});