您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Enables solutions button on online textbook
// ==UserScript== // @name Cambridge Methods Solutions Button // @namespace http://tampermonkey.net/ // @version 1.0 // @description Enables solutions button on online textbook // @author Noah McMahon // @match *://seniormaths.cambridge.edu.au/* // @grant none // ==/UserScript== (function() { var checkPageLoaded = setInterval(function() { if ($('.js-answers').length) { $(".js-answers").after("<a title='solutions' class='answers-icon nm-solutions' style='background:url(https://cdn.edjin.com/static/users/branding/seniormaths/img/solutions-icon-e1dcf62c660c8b3d724497b35328af8d.png)'></a>"); $('.nm-solutions').click(function() { $.get('/lessonSection/loadTutorial.action', { tutorialType: 'EXERCISE_SOLUTION', conceptId: currentConceptId }, function(html) { $('.js-exercise-solutions-dialog').html(html); loadDialog('.js-exercise-solutions-dialog'); $('.js-exercise-solutions-dialog').reloadMathJax(); }); }); clearInterval(checkPageLoaded); } }, 100); })();