Skip to content

Instantly share code, notes, and snippets.

@susembed
susembed / gist:44742c3b0637583dd4a26f3fb389cda9
Last active May 18, 2025 15:33
uBlock filters for Youtube interface modding
! fix_unclickable_comment_section: On some case, the comment section is covered by a tranparent element.
www.youtube.com##.smartimation__border
! Remove sidebar (the column for Home-Subscriptions-You)
www.youtube.com###page-manager:style(margin-left:0 !important)
www.youtube.com##ytd-mini-guide-renderer.ytd-app.style-scope:remove()
! Remvove Shorts of watch-next segment
www.youtube.com##ytd-reel-shelf-renderer.ytd-item-section-renderer.style-scope:remove()
! Fixed header position
www.youtube.com###masthead-container:style(position:absolute !important)
@susembed
susembed / gist:7c269823c6295a404087ddcd809edadd
Created May 6, 2025 12:52
Ezviz camera's compaibility with Hikvison protocol and RTSP URL
Tested on CS-H6C (Pro 1080P)
@susembed
susembed / gist:ed0d518ef71dfe98a13c7a04fa1a6867
Last active May 3, 2025 18:55
Disable wallpaper dimming in Cinnamon screensaver
def shade_wallpaper(self, widget, cr):
"""
This draw callback adds a shade mask over the current
image. It is uniform when not Awake, and acquires a
significant gradient vertically framing the unlock dialog
when Awake.
"""
if not status.Awake:
cr.set_source_rgba(0.0, 0.0, 0.0, 0.0)
cr.paint()
@susembed
susembed / gist:9ef41375745b673ff77de29c6a317156
Last active March 22, 2025 16:32
Get intent from application shortcut.
spes:/ # dumpsys shortcut | grep com.xm.csee
Package: com.xm.csee User: 0
Package: com.xm.csee UID: 10275
packageName=com.xm.csee
activity=ComponentInfo{com.xm.csee/com.xworld.activity.welcome.view.WelcomePageActivity}
intents=[Intent { act=android.intent.action.VIEW cmp=com.xm.csee/com.xworld.activity.welcome.view.WelcomePageActivity }/PersistableBundle[{DESK_DEVICE_ID=10.1.0.2:34567, xmApp=addShortCut}]]
packageName=com.xm.csee
activity=ComponentInfo{com.xm.csee/com.xworld.activity.welcome.view.WelcomePageActivity}
intents=[Intent { act=android.intent.action.VIEW cmp=com.xm.csee/com.xworld.activity.welcome.view.WelcomePageActivity }/PersistableBundle[{DESK_DEVICE_ID=10.1.0.11:34567, xmApp=addShortCut}]]
spes:/ #