USERSTYLES - TABLES Sorter SIMPLE

Sort Table in Your Profile page

目前为 2017-06-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name USERSTYLES - TABLES Sorter SIMPLE
  3. // @author decembre
  4. // @namespace https://greasyfork.org/fr/users/8-decembre
  5.  
  6. // @description Sort Table in Your Profile page
  7.  
  8. // @include https://userstyles.org/*
  9.  
  10. // @version 01.01
  11. // @grant none
  12. // @require https://greasyfork.org/scripts/12036-mutation-summary/code/Mutation%20Summary.js?version=70722
  13. // @require https://greasyfork.org/scripts/5844-tablesorter/code/TableSorter.js?version=21758
  14. //
  15.  
  16. // FROM : Metal Archives (discography pages) - Reviews column split and sortable tables
  17. // BY darkred
  18. // https://greasyfork.org/fr/scripts/5751-metal-archives-discography-pages-reviews-column-split-and-sortable-tables/code
  19.  
  20. // This userscript uses jQuery UI, the jQuery plugin 'tablesorter' (forked by Rob Garrison (Mottie)) http://mottie.github.io/tablesorter/docs/index.html
  21. // and the JavaScript library 'Mutation Summary' (https://github.com/rafaelw/mutation-summary) (by Rafael Weinstein)
  22. //
  23. // @namespace rikkie
  24. // ==/UserScript==
  25.  
  26. // TEST for <table class="author-styles">
  27. // TEST SELECTOR
  28. // http://mottie.github.io/tablesorter/docs/example-option-selectorsort.html
  29. $(function() {
  30. // call the tablesorter plugin
  31. $("table").tablesorter({
  32. selectorSort : 'th'
  33. });
  34. });