Kicktraq links

Links thumbnails directly to Kickstarter and adds [K] links to KS to the Top Ten list

  1. // ==UserScript==
  2. // @name Kicktraq links
  3. // @namespace http://tampermonkey.net/
  4. // @version 0.1
  5. // @description Links thumbnails directly to Kickstarter and adds [K] links to KS to the Top Ten list
  6. // @author Lex
  7. // @match http://www.kicktraq.com/*
  8. // @require http://code.jquery.com/jquery-3.2.1.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function($) {
  13. 'use strict';
  14.  
  15. $(".project-image a, .avatar a").each(function(){
  16. let suf = this.getAttribute('href');
  17. this.setAttribute('href', "https://www.kickstarter.com" + suf);
  18. });
  19.  
  20. $(".listentry-mini.link a").each(function(){
  21. let suf = this.getAttribute('href');
  22. $("<a> [K]</a>").attr('href', "https://www.kickstarter.com" + suf).insertAfter(this);
  23. });
  24. })(window.jQuery);