<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Userscripts on Patterns Dynamics</title><link>https://patternsdynamics.com/userscript/</link><description>Recent content in Userscripts on Patterns Dynamics</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Fri, 06 Nov 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://patternsdynamics.com/userscript/index.xml" rel="self" type="application/rss+xml"/><item><title>Right-Click Unblocker</title><link>https://patternsdynamics.com/userscript/right-click-unblocker/</link><pubDate>Fri, 06 Nov 2026 00:00:00 +0000</pubDate><guid>https://patternsdynamics.com/userscript/right-click-unblocker/</guid><description>&lt;p>Some sites disable the context menu, text selection or image dragging with
JavaScript and CSS. This script runs at &lt;code>document-start&lt;/code> on every page and
undoes that, without breaking normal clicks:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>Context menu&lt;/strong>: capture-phase listeners stop the page&amp;rsquo;s own &lt;code>contextmenu&lt;/code>,
&lt;code>selectstart&lt;/code> and &lt;code>dragstart&lt;/code> handlers. The browser&amp;rsquo;s default action still
runs, so the native menu opens.&lt;/li>
&lt;li>&lt;strong>Right-button handlers&lt;/strong>: only &lt;code>mousedown&lt;/code>/&lt;code>mouseup&lt;/code> with &lt;code>button === 2&lt;/code> are
intercepted. Left and middle clicks still reach the page.&lt;/li>
&lt;li>&lt;strong>Inline handlers&lt;/strong>: &lt;code>oncontextmenu&lt;/code>, &lt;code>onselectstart&lt;/code> and &lt;code>ondragstart&lt;/code>
attributes (and &lt;code>draggable=&amp;quot;false&amp;quot;&lt;/code> on images) are stripped, including from
elements added later, which a &lt;code>MutationObserver&lt;/code> watches for.&lt;/li>
&lt;li>&lt;strong>Text selection &amp;amp; dragging&lt;/strong>: a stylesheet forces &lt;code>user-select: text&lt;/code> and
re-enables dragging of images, videos and canvases. Elements locked with
inline &lt;code>user-select: none&lt;/code> get an inline override, because a stylesheet
can&amp;rsquo;t beat that.&lt;/li>
&lt;/ul>
&lt;p>No &lt;code>@grant&lt;/code>s and no network access. The script only touches the page it runs on.&lt;/p></description></item></channel></rss>