Jlab Cheater

jlab cheat (fake results to print and give your teacher ;) )

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

You will need to install an extension such as Tampermonkey to install this script.

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name           Jlab Cheater
// @description    jlab cheat (fake results to print and give your teacher ;) )
// @include        http://education.jlab.org/solquiz/results.php*
// @version 0.0.1.20140525024113
// @namespace https://greasyfork.org/users/2178
// ==/UserScript==
var NumOfQs = document.getElementsByClassName('resultquestion').length
var oC=document.getElementsByClassName('resultincorrect').length
var oR=document.getElementsByClassName('resultcorrect').length
for (var i=1;i<NumOfQs;i++) {
	if (!document.getElementsByClassName('resultincorrect')){
		break;
	}
	if (document.getElementsByClassName('resultincorrect').length!=0){
		document.getElementsByClassName('resultincorrect')[0].innerHTML='Correct!';
		document.getElementsByClassName('resultincorrect')[0].setAttribute('class','resultcorrect');
	}
}
document.getElementsByClassName('sectionscore1')[0].innerHTML='You answered '+NumOfQs+' questions out of '+NumOfQs+' correctly!';
document.getElementsByClassName('sectionscore2')[0].innerHTML='Score for this section: 100.00%';
document.getElementById('totalscore').innerHTML='Total Score: 100.00%';
document.getElementById('timeindex').contentEditable='true';
alert('Dont forget to edit the time it took you to finish so that it is believable ;)\nIt is right below "Results" in big letters. (Just click and type)\nYour score is really '+oC/NumOfQs*100+'%.\nThere is no way to tell this is a fake just print it.\nIt will be a perfect fake.\nDON\'T EMAIL RESULTS IT WILL SEND THE ORIGINAL GRADE!!!\nTo see why paste javascript:alert(unescape(document.cookie)) into your address bar.');