MyAnimeList Auto-Confirm updated entry

Automatically goes back to anime page after successfully updating an entry

当前为 2018-08-02 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MyAnimeList Auto-Confirm updated entry
  3. // @namespace https://greasyfork.org/en/users/96096-purple-pinapples
  4. // @version 0.1.4
  5. // @description Automatically goes back to anime page after successfully updating an entry
  6. // @author PurplePinapples
  7. // @license WTFPL
  8. // @run-at document-end
  9. // @match https://myanimelist.net/editlist.php?type=anime&id=*
  10. // @match https://myanimelist.net/panel.php?go=add&selected_series_id=*
  11. // @match https://myanimelist.net/panel.php?go=editmanga&id=*
  12. // @match https://myanimelist.net/ownlist/anime/*/edit
  13. // @match https://myanimelist.net/ownlist/manga/*/edit
  14. // @match https://myanimelist.net/ownlist/anime/*/delete
  15. // @match https://myanimelist.net/ownlist/manga/*/delete
  16. // @match https://myanimelist.net/panel.php?go=addmanga&selected_manga_id=*
  17. // @match https://myanimelist.net/ownlist/anime/add?selected_series_id=*
  18. // @match https://myanimelist.net/ownlist/manga/add?selected_manga_id=*
  19. // @grant none
  20. // ==/UserScript==
  21.  
  22. (function() {
  23. 'use strict';
  24. if ($("#content > .goodresult > strong:contains('Successfully')").length > 0) {
  25. location.href = $("#content > .goodresult > a:last-child").attr("href");
  26. }
  27. })();