<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.flerf.info/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js</id>
	<title>MediaWiki:Common.js - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.flerf.info/index.php?action=history&amp;feed=atom&amp;title=MediaWiki%3ACommon.js"/>
	<link rel="alternate" type="text/html" href="https://www.flerf.info/index.php?title=MediaWiki:Common.js&amp;action=history"/>
	<updated>2026-05-28T03:04:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://www.flerf.info/index.php?title=MediaWiki:Common.js&amp;diff=7413&amp;oldid=prev</id>
		<title>ICSpin: Add .spoiler-img reveal handler — unblur on actual mouse movement, not scroll-under hover</title>
		<link rel="alternate" type="text/html" href="https://www.flerf.info/index.php?title=MediaWiki:Common.js&amp;diff=7413&amp;oldid=prev"/>
		<updated>2026-05-04T17:02:47Z</updated>

		<summary type="html">&lt;p&gt;Add .spoiler-img reveal handler — unblur on actual mouse movement, not scroll-under hover&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;/* Any JavaScript here will be loaded for all users on every page load. */&lt;br /&gt;
$(function() {&lt;br /&gt;
    $(&amp;#039;.spoiler-img&amp;#039;).each(function() {&lt;br /&gt;
        var $el = $(this);&lt;br /&gt;
        var armed = false;&lt;br /&gt;
        $el.on(&amp;#039;mouseenter&amp;#039;, function() {&lt;br /&gt;
            // Only unblur if user has actually moved mouse since last leave&lt;br /&gt;
            if (armed) {&lt;br /&gt;
                $el.addClass(&amp;#039;revealed&amp;#039;);&lt;br /&gt;
            }&lt;br /&gt;
        });&lt;br /&gt;
        $el.on(&amp;#039;mousemove&amp;#039;, function() {&lt;br /&gt;
            armed = true;&lt;br /&gt;
            $el.addClass(&amp;#039;revealed&amp;#039;);&lt;br /&gt;
        });&lt;br /&gt;
        $el.on(&amp;#039;mouseleave&amp;#039;, function() {&lt;br /&gt;
            armed = false;&lt;br /&gt;
            $el.removeClass(&amp;#039;revealed&amp;#039;);&lt;br /&gt;
        });&lt;br /&gt;
    });&lt;br /&gt;
});&lt;/div&gt;</summary>
		<author><name>ICSpin</name></author>
	</entry>
</feed>