Last active
August 29, 2015 14:07
-
-
Save linroex/704b6aed8ce44c065e54 to your computer and use it in GitHub Desktop.
可以刪除BlackBoard中的多餘課程,只留下這學期的課,可以加到書籤使用,Chrome 外掛版本開發中
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function() { | |
function loadScript(url, callback) { | |
var script = document.createElement("script"); | |
script.type = "text/javascript"; | |
if (script.readyState) script.onreadystatechange = function() { | |
if (script.readyState == "loaded" || script.readyState == "complete") { | |
script.onreadystatechange = null; | |
callback() | |
} | |
}; | |
else script.onload = function() { | |
callback() | |
}; | |
script.src = url; | |
document.getElementsByTagName("head")[0].appendChild(script) | |
} | |
loadScript("https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js", function() { | |
jQuery("#_4_1termCourses_noterm li").each(function() { | |
if (!jQuery(this).find("a").text().match("^1032")) console.log(jQuery(this).remove()) | |
}) | |
}) | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment