-
ci sono redditors all'ascolto?Stavo cercando un modo per vedere tutti i miei subreddit, perché di default nella tendina ce ne sono solo 50, alla fine me lo sono creato da me.
Con scriptish (ma con greasemonkey funziona lo stesso) ho scritto questo:// ==UserScript== // @id subreddits // @name subreddits // @version 1.0 // @namespace // @author // @description // @include http://www.reddit.com/subreddits/ // @run-at document-end // ==/UserScript== var subs = Array.prototype.slice.call( document.querySelectorAll( '.subscription-box > .clear > ul > li > a' ) ).map(function(node) { return node.childNodes[0].nodeValue; }); var html = subs.map(function(subName) { return "<a href='/r/" + subName + "'>" + subName + "</a>"; }).join(" "); html += "<style>a {font-size: 14px; font-family: serif; padding-left: 1em;} body {padding: 5em 5em 5em 5em;}</style>" document.body.innerHTML = html;
Così visito direttamentehttp://www.reddit.com/subreddits/
e ho già quello che cerco.
Young professional woman and busy mom.-
Re: ci sono redditors all'ascolto?Scritto daSeuTrombeur de femmesil 2013-05-13 18:45:28.0 alle 2013-05-13 18:45:28.0Trollate totali: 2082Scritto da: ::1
> Stavo cercando un modo per vedere tutti i miei subreddit, perché di default nella tendina ce ne sono solo 50, alla fine me lo sono creato da me.
> Con scriptish (ma con greasemonkey funziona lo stesso) ho scritto questo:
>> // ==UserScript== > // @id subreddits > // @name subreddits > // @version 1.0 > // @namespace > // @author > // @description > // @include http://www.reddit.com/subreddits/ > // @run-at document-end > // ==/UserScript== > > var subs = Array.prototype.slice.call( > document.querySelectorAll( > '.subscription-box > .clear > ul > li > a' > ) > ).map(function(node) { > return node.childNodes[0].nodeValue; > }); > var html = subs.map(function(subName) { > return "<a href='/r/" + subName + "'>" + subName + "</a>"; > }).join(" "); > > html += "<style>a {font-size: 14px; font-family: serif; padding-left: 1em;} body {padding: 5em 5em 5em 5em;}</style>" > > document.body.innerHTML = html; >
> Così visito direttamentehttp://www.reddit.com/subreddits/
e ho già quello che cerco.
MercìAtoms & Love
-