Here's what the above script does:
Last active
December 12, 2015 12:09
-
-
Save mreidsma/4770366 to your computer and use it in GitHub Desktop.
In SerialsSolutions Summon, make the title of the best bet the link and get rid of the weird "More" link.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if($(".best-bet-list").length > 0) { | |
| var bbTitle = $(".best-bet-title").text(); | |
| var bbURL = $(".best-bet").find(".more").find("a").attr("href"); | |
| var bbDesc = $(".best-bet-body").find(".detail").text(); | |
| if(bbDesc === ".") { | |
| $("li.best-bet").html('<div class="theme-best-bet-icon"></div><div class="best-bet-title"><a href="' + bbURL + '">' + bbTitle + '</a></div>'); | |
| } else { // Has a description | |
| $("li.best-bet").html('<div class="theme-best-bet-icon"></div><div class="best-bet-title"><a href="' + bbURL + '">' + bbTitle + '</a></div><div class="best-bet-body"><div class="detail"><p>' + bbDesc + '</p></div>'); | |
| } | |
| } |
Author
Matt - I have had no joy with this and it looks so simple (apparently I'm more simple.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Adding the script to Summon: https://github.com/gvsulib/Summon-Stats#adding-the-script-to-summon