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

Lemmy Plugins and Userscripts

2176 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
10
submitted 1 year ago* (last edited 1 year ago) by god to c/plugins
 

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
[–] [email protected] 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

[–] god 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?

[–] [email protected] 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

[–] god 2 points 1 year ago* (last edited 1 year ago) (1 children)

nevermind, i found the code, it's here

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

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

[–] god 1 points 1 year ago

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

[–] god 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/*