tag:danbooru.me,2005:/forum_topics/16392Mobile gestures not working when viewing images2019-11-20T07:37:15-05:00tag:danbooru.me,2005:ForumPost/1610662019-11-20T07:37:15-05:002019-11-20T07:37:15-05:00@Johnyyyz: > evazion said:
>
> // ==UserScript==
> //...<blockquote>
<p>evazion said:</p>
<pre>// ==UserScript==
// @name Danbooru: Swipe Back
// @match https://*.donmai.us/*
// ==/UserScript==
if ($("#c-posts #a-show").length) {
let hammer = new Hammer(document.body, {touchAction: 'pan-y', recognizers: [[Hammer.Swipe, { threshold: 20, velocity: 0.4, direction: Hammer.DIRECTION_HORIZONTAL }]], inputClass: Hammer.TouchInput});
hammer.on("swiperight", e => window.history.back());
}
</pre>
<p>This should work. This is just a basic demonstration; no warranty if it breaks.</p>
</blockquote><p>Thank you so much, it works really well :D</p>Johnyyyz/users/613432tag:danbooru.me,2005:ForumPost/1609562019-11-15T13:51:57-05:002019-11-15T13:51:57-05:00@evazion: // ==UserScript==
// @name Danbooru:...<pre>// ==UserScript==
// @name Danbooru: Swipe Back
// @match https://*.donmai.us/*
// ==/UserScript==
if ($("#c-posts #a-show").length) {
let hammer = new Hammer(document.body, {touchAction: 'pan-y', recognizers: [[Hammer.Swipe, { threshold: 20, velocity: 0.4, direction: Hammer.DIRECTION_HORIZONTAL }]], inputClass: Hammer.TouchInput});
hammer.on("swiperight", e => window.history.back());
}
</pre><p>This should work. This is just a basic demonstration; no warranty if it breaks.</p>evazion/users/52664tag:danbooru.me,2005:ForumPost/1609022019-11-12T06:54:41-05:002019-11-12T06:54:41-05:00@Johnyyyz: As you can see I was the one asking the...<p>As you can see I was the one asking the questions :) </p><p>I have been looking into finding a hack to bring it back and I discovered that the (android) browser Kiwi allows you to install chrome extension, which means you can install tampermonkey. So what I need now is a script that would bring back this feature. <br>Is it possible that I could use the part that was removed for this? <a href="/users?name=evazion">@evazion</a> </p>Johnyyyz/users/613432tag:danbooru.me,2005:ForumPost/1604482019-10-18T09:38:05-04:002019-10-18T09:39:17-04:00@kittey: See forum #160235 and the bottom half of forum...<p>See <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/160235">forum #160235</a> and the bottom half of <a class="dtext-link dtext-id-link dtext-forum-post-id-link" href="/forum_posts/160422">forum #160422</a>.</p>kittey/users/320377tag:danbooru.me,2005:ForumPost/1604472019-10-18T09:27:01-04:002019-10-18T09:27:31-04:00@Mistblade356: Mobile gestures work while viewing gallery, but...<p>Mobile gestures work while viewing gallery, but when I click into an image to look at it, swiping right doesn't take me back anymore. Really annoying to reach down and hit back when you're used to swiping and tapping</p>Mistblade356/users/714374