Skip to content

Instantly share code, notes, and snippets.

@albertopasqualetto
Last active February 10, 2024 15:14
Show Gist options
  • Save albertopasqualetto/cb987b900445f14707dd3d39318e936f to your computer and use it in GitHub Desktop.
Save albertopasqualetto/cb987b900445f14707dd3d39318e936f to your computer and use it in GitHub Desktop.
Re-enable dragging on shreddit userscript
// ==UserScript==
// @name Re-enable dragging on sh.reddit
// @namespace albertopasqualetto
// @version 1.0.5
// @description Re-enable dragging on sh.reddit instead of embed/share button
// @author albertopasqualetto
// @match *://sh.reddit.com/*
// @match *://*.reddit.com/*
// @exclude *://new.reddit.com/*
// @exclude *://old.reddit.com/*
// @icon https://www.redditstatic.com/desktop2x/img/favicon/android-icon-192x192.png
// @grant none
// @run-at document-idle
// @downloadURL https://gist.github.com/albertopasqualetto/cb987b900445f14707dd3d39318e936f/raw/re-enable%2520dragging%2520shreddit.user.js
// @updateURL https://gist.github.com/albertopasqualetto/cb987b900445f14707dd3d39318e936f/raw/re-enable%2520dragging%2520shreddit.user.js
// ==/UserScript==
(function() {
'use strict';
document.querySelectorAll('embed-snippet-share-button').forEach((elem) => elem.remove())
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment