您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copy article informations from Miamed Amboss.
当前为
// ==UserScript== // @name Amboss Copier // @namespace http://oix.cc/gm // @description Copy article informations from Miamed Amboss. // @author Bin Zhang // @icon https://amboss.miamed.de/favicon-192x192.png // @homepageURL http://oix.cc/amboss // @version 0.0.1 // @match https://amboss.miamed.de/library // @include /^https?://amboss-miamed-de\.ezproxy\..*/library$/ // @run-at document-idle // ==/UserScript== (function(){ window.addEventListener("hashchange", hashchange); if (typeof angular !== 'undefined' || typeof angular.element('#LibraryContent').scope() !== 'undefined') { var initWatcher = setInterval(function () { console.log('watch'); console.log(angular.element('#LibraryContent').scope().$root.loading); // loaded if (angular.element('#LibraryContent').scope().$root.loading !== true) { console.log(typeof angular.element('#LibraryContent').scope().$root.loading); //console.log($('#LibraryContent').find('article.LearningCard[data-xid]').first().attr('data-xid')) clearInterval(initWatcher); init(); } /*if ($('#LibraryContent').find('article.LearningCard').length > 0) { //console.log($('#LibraryContent').find('article.LearningCard[data-xid]').first().attr('data-xid')) clearInterval(initWatcher); init(); }*/ }, 5); } function init() { console.log('init'); } function hashchange() { console.log('hashchange'); } }());