this post was submitted on 13 Jun 2023
9 points (100.0% liked)

Lemmy Plugins and Userscripts

375 readers
1 users here now

A general repository for user scripts and plugins used to enhance the Lemmy browsing experience.

Post (or cross-post) your favorite Lemmy enhancements here!

General posting suggestions:

Thanks!

founded 1 year ago
MODERATORS
 

Credits: source

Change Source Author
Original CSS comment#610 ___
Original userscript comment#902 yay
Userscript URL fix comment#2219 god
Final / Affects player size comment#21062 FreePussy4All

original css: by https://lemmynsfw.com/u/___

original userscript: https://lemmynsfw.com/comment/610 by my tiny fix: me

script:

// ==UserScript==
// @name lemmynsfw no blur and embed size tweak
// @version 1.2
// @description unblur
// @match https://lemmynsfw.com/*
// @match https://*/c/*@lemmynsfw.com
// @grant GM_addStyle
// @run-at document-start
// ==/UserScript==

GM_addStyle(`
  .img-blur {
    filter: none !important;
    -webkit-filter: none !important;
    -moz-filter: none !important;
    -o-filter: none !important;
    -ms-filter: none !important;
  }
  div.post-listing > iframe {
    width: 100%;
    height: 26rem;
  }
`);
top 7 comments
sorted by: hot top controversial new old
[–] denemdenem 2 points 1 year ago (2 children)

Made a small tweak for opening a community from my own instance:

// @match https://lemmy.world/c/*@lemmynsfw.com

[–] [email protected] 3 points 1 year ago (1 children)

I actually removed that match from the version I'm using so it unblurs everywhere lol. Do you think that's better?

[–] denemdenem 2 points 1 year ago (2 children)

It works, however I also started testing the old.reddit userscript and it removes nsfw blur by default. Separation of concerns failed lol

[–] [email protected] 2 points 1 year ago (1 children)

could you tell me which code you copy pasted to get that result? the one i'm testing from here seems to have been last edited 6 hours ago and doesn't contain the word "blur" (I ctrl f'd). Maybe I'm looking at the wrong place?

[–] denemdenem 3 points 1 year ago

It is posted to this community too with the note that it unblurs images.

[–] [email protected] 1 points 1 year ago

I didn't notice that it removes blur? it didn't for me. i will test again.

[–] [email protected] 2 points 1 year ago

actually what I did was add more matches:

// @match https://lemmynsfw.com/*
// @match https://reddthat.com/*
// @match https://sh.itjust.works/*