LoginSignup
0
0

More than 3 years have passed since last update.

ミライシードの答えを開示するやつ

Posted at

すること

ミライシードっていうベネッセが学校に無料開放しているやつを改造してみた
具体的には,ドリルパークの国語以外で答えが見られるようになる.

Tampermonkeyの導入

面倒くさいので下の記事を参照してください
http://kbtools.web.fc2.com/gm_install.htm
※古いですがChrome以外のブラウザも乗っているのでわかりやすいです

コード

// ==UserScript==
// @name         miraiseed open the answer
// @namespace    http://tampermonkey.net/
// @version      0.4
// @description  try to take over the world!
// @author       Tom1022
// @match        https://miraiseed.benesse.ne.jp/seed/*/drill
// @match        https://miraiseed.benesse.ne.jp/seed/*/drillResume
// @match        https://miraiseed.benesse.ne.jp/seed/*/restart
// @grant        none
// ==/UserScript==

for (let i = 0; i < $('div.main_cont')[0].children[0].children[0].children.length - 2; i++) {
    toggleExpound(i);
}

解説

2~5行目はこのコードの説明的なやつ
6~8行目は特定のページで動くようにする設定
for文のところで問題数を取り出す
toggleExpound(i);のところでcssのやつの関数を呼び出す.

リンク

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0