Crul, (edited )

the communities’ ids are in the url, so the reddit method doesn’t work unless i memorise the id №.

Yeah… that’s why I didn’t tried that yet. I’m waiting a bit to see what frontend options are.

The good news is that mlmym uses the community name for posting and searches:

To make it work with community ids, I planned to have something like the “subreddit shorcuts” from the “post to reddit” bookmarklet (see below). Not ideal, but better than nothing.

i don’t suppose you could share some of those?

Sure, here there are. I realized that a couple of them are not really bookmarklets, but simple bookmarks with the %s param. You need to add a keyword and use it with keyword string to be searched.

lemmy all search

lemm.ee/search?q=%s&type=All&listingType=…

lemmy community search

lemm.ee/search?q=%s&type=Communities&list…

get link in markdown

Execute it without param (e.g.: link) to get [title](url)
Execute it with a param (link text to display) to get [text to display](url)
It will show the result in a prompt and you can copy from there. The prompt itself has no effect, it doesn’t matter how you close it.

pretty printed code(function() { var title = (“%s” || document.title) .replace(“[”, “[”) .replace(“]”, “]”); prompt(“Title:”, [${title}](${document.location.href})); })()

One liner:


<span style="color:#323232;">javascript:(function() {var title = ("%s" || document.title).replace("[", "\[").replace("]", "\]");prompt("Title:", `[${title}](${document.location.href})`);})()
</span>

I also have one to get just the title of a page, but I leave that as an exercise to the reader :D. It’s very easy to modify the link one.

post to reddit

Use it with the subreddit name (e.g.: post CassetteFuturism) or the subreddit shortcut (e.g.: post cf).
If executed with no param, it will show a list of “shortcuts” and will ask you to select one.

The shortcuts are in the `subKeys``dictionary. That’s the trick that could be used to assign the community ids from the community names (or custom shortcuts). Not practical for a random commmunity, but manageable for the most common ones.

pretty printed codefunction() { var subKeys = { cf: ‘CassetteFuturism’, it: ‘ImaginaryTechnology’, iv: ‘ImaginaryVehicles’, ap: ‘ApocalypsePorn’, ss: ‘Simon_Stalenhag’, sw: ‘spainwave’, sk: ‘sketches’, }; var subreddit = ‘%s’; if (!subreddit) { var promptText = “Type subreddit:”; for (var shortcut in subKeys) promptText += n- ${shortcut}: ${subKeys[shortcut]}; subreddit = prompt(promptText); } if (!subreddit) return; if (subKeys[subreddit]) subreddit = subKeys[subreddit]; var title = document.title; var url = encodeURIComponent(document.location.href); window.open(https://www.reddit.com/r/${subreddit}/submit?url=${url}&amp;title=${title}); })()

One liner:


<span style="color:#323232;">javascript:(function() {var subKeys = {cf: 'CassetteFuturism',it: 'ImaginaryTechnology',iv: 'ImaginaryVehicles',ap: 'ApocalypsePorn',ss: 'Simon_Stalenhag',sw: 'spainwave',sk: 'sketches',};var subreddit = '%s';if (!subreddit) {var promptText = "Type subreddit:";for (var shortcut in subKeys) promptText += `n- ${shortcut}: ${subKeys[shortcut]}`;subreddit = prompt(promptText);}if (!subreddit) return;if (subKeys[subreddit]) subreddit = subKeys[subreddit];var title = document.title;var url = encodeURIComponent(document.location.href);window.open(`https://www.reddit.com/r/${subreddit}/submit?url=${url}&amp;title=${title}`);})()
</span>

(…continues on next comment?)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • uselessserver093
  • Food
  • [email protected]
  • aaaaaaacccccccce
  • test
  • CafeMeta
  • testmag
  • MUD
  • RhythmGameZone
  • RSS
  • dabs
  • oklahoma
  • Socialism
  • SuperSentai
  • feritale
  • Testmaggi
  • KbinCafe
  • Ask_kbincafe
  • TheResearchGuardian
  • KamenRider
  • All magazines