Now available in the Downloads section.Code:// ==UserScript== // @name Reddit: Karma Decay Integration // @namespace http://forum.logicalgamers.com/ // @version 1.0 // @description adds a Karma Decay link to reddit image submissions // @match http://www.reddit.com/* // @copyright 2013, Charles Stover // ==/UserScript== $('a.title[href*="imgur.com/"], a.title[href$="gif"], a.title[href$="jpg"], a.title[href$="png"]').each( function() { var $entry = $(this).parent().parent(); $entry.find("ul.buttons").append('<li><a href="http://www.karmadecay.com/' + $entry.find("a.comments")[0].getAttribute("href").replace(/^https?:\/\/(?:www\.)?reddit\.com\//, "") + '" target="_blank">karmadecay<\/a><\/li>'); } );
Coded in jQuery, since reddit supports jQuery.
Results 1 to 3 of 3
- 29 Sep. 2013 06:20am #1
Reddit greasemonkey script: add Karmadecay links to image description
- 29 Sep. 2013 06:34pm #2
- Join Date
- Apr. 2013
- Location
- Minnesota
- Posts
- 1,325
- Reputation
- 114
- LCash
- 0.82
Cool script.
The metadata is bigger than the actual code. xD
Why not post on userscripts site for some visibility?https://discord.gg/TvN6xUb ~ chat on discord pls.
- 30 Sep. 2013 01:19am #3
The OkCupid script is like 10 bytes without the metadata.