MAL Default List Order

Orders anime and manga lists by a score given on default

目前为 2015-03-06 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name MAL Default List Order
  3. // @namespace MAL
  4. // @description Orders anime and manga lists by a score given on default
  5. // @include http://myanimelist.net/*
  6. // @version 1
  7. // ==/UserScript==
  8.  
  9. var links = document.evaluate("//a[(contains(@href, '/animelist/') or contains(@href, '/mangalist/')) and not(contains(@href, '&order='))]", document, null,
  10. XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
  11. for (var i=0; i < links.snapshotLength; i++)
  12. {
  13. var thisLink = links.snapshotItem(i);
  14. thisLink.href += '&order=4';
  15. }