Homepage Forum Spanking Art Gallery Oekaki Drawing Board Art Contests Roleplaying Forums Spanking Video Games Spanking Stories and Fiction Spanking Video Downloads of Animes Social Groups Register an account Rules Frequently Asked Questions

  
Go Back   AnimeOTK > News, Announcements & Admin Communication > Questions and Answers

Questions and Answers Need help with an area of the site? Unable to validate your account? Get some help! (NOTE: Users awaiting email confirmation of their accounts can post here to get help)

Want to get rid of the annoying adverts? The answer is simple. There are 4 levels of advertising on AnimeOTK:

Level 1: (Your Level, guests and members with 0-9 posts) has maximum advertising.
Level 2: (A user with 10 or more posts who has been a member over two weeks) have vastly reduced advertising (including removal of the large full screen closable adverts)
Level 3: (A member who has been registered over a month and has over 50 posts, or has a special account like "artist" or "writer" sees minimal advertising.
Level 4: (VIP Donators) receive no advertising.
All donators of $10 or more will never see an advert on our site again!
Reply
 
Thread Tools

Keyboard shortcut, load next photo in gallery?
Old September 25th, 2015, 02:56 PM   #1
Kevelinu
Probationary User
 
Kevelinu is offline
Join Date: Sep 2015
Posts: 3
Default Keyboard shortcut, load next photo in gallery?

Hi!
I just signed up here...I am really glad that I found that site because obviously (why else would I be here?) I love stuff like that, especially in Anime style.
So browsing through the gallery I am immidiately missing a feature that I really hope is actually there...
It is so inconvienient always having to click on the arrow with the mouse to go to the next picture. I am the kind of guy who uses keyboard shortcuts for everything.
So my question is, is there any way to browse through a gallery with any key?
I tried the obvious solution first, just using the arrow keys, but they wouldn't do anything.
I hope there is such a feature. :-(
Thanks for your help in advance.
Kevin
  Reply With Quote

Old September 26th, 2015, 06:02 PM   #2
Akuma
Administrator
 
Akuma's Avatar
 
Akuma is offline
Join Date: Apr 2007
Location: Texas, USA
Posts: 799
Default

Download the greasemonkey extension for your browser.

Add the following script :

Code:
// ==UserScript==
// @name           AOTK
// @namespace      AOTK
// @include        /^https?://(www\.)?animeotk\.com/gallery/showphoto.php.*$/
// @grant          none
// ==/UserScript==

function KeyCheck(e)
{
  if(e.keyCode==32 && e.ctrlKey)
     document.getElementsByClassName('next-photo')[0].children[0].click()
}

window.addEventListener('keyup', KeyCheck, true);
This goes to the next page on ctrl+space.
Replace 32 with the keycode you want to use. http://keycode.info/ will help you find it.

You might also add the following to your script. I've had this one in my browser for ages. It starts the image at the top of your browser
Code:
window.scrollTo(0, 365);
  Reply With Quote

Old September 26th, 2015, 10:41 PM   #3
Kevelinu
Probationary User
 
Kevelinu is offline
Join Date: Sep 2015
Posts: 3
Default

Quote:
Originally Posted by Akuma View Post
Download the greasemonkey extension for your browser.

Add the following script :

Code:
// ==UserScript==
// @name           AOTK
// @namespace      AOTK
// @include        /^https?://(www\.)?animeotk\.com/gallery/showphoto.php.*$/
// @grant          none
// ==/UserScript==

function KeyCheck(e)
{
  if(e.keyCode==32 && e.ctrlKey)
     document.getElementsByClassName('next-photo')[0].children[0].click()
}

window.addEventListener('keyup', KeyCheck, true);
This goes to the next page on ctrl+space.
Replace 32 with the keycode you want to use. http://keycode.info/ will help you find it.

You might also add the following to your script. I've had this one in my browser for ages. It starts the image at the top of your browser
Code:
window.scrollTo(0, 365);
Ehh first of all, unfortunately not availabe for Chrome.
Well tried it for Firefox and I can't get it to work...
What do I have to enter in "namespace"? I just entered whatever. The code I just copied and pasted but when pressing the combination, nothing happens at all.

I am just baffled that this is not a "normal" feature on this site, just pressing the arrow key like on many other image boards...

Thanks for your help.
  Reply With Quote

Old September 27th, 2015, 07:17 PM   #4
Akuma
Administrator
 
Akuma's Avatar
 
Akuma is offline
Join Date: Apr 2007
Location: Texas, USA
Posts: 799
Default

Chrome's greasemonkey is called tampermonkey. I forgot to mention that.

And I think the image gallery might actually have that option, but we turned it off for some reason. Possibly because it was hard bound to keys that were interfering with normal operation. My memory is poor though, so I am unsure.
  Reply With Quote

Old September 28th, 2015, 08:32 AM   #5
Kevelinu
Probationary User
 
Kevelinu is offline
Join Date: Sep 2015
Posts: 3
Default

Quote:
Originally Posted by Akuma View Post
Chrome's greasemonkey is called tampermonkey. I forgot to mention that.

And I think the image gallery might actually have that option, but we turned it off for some reason. Possibly because it was hard bound to keys that were interfering with normal operation. My memory is poor though, so I am unsure.
So...any idea what I did wrong? Why can't I get it to work? I thought I just have to copy and paste the code...
  Reply With Quote

Old September 28th, 2015, 05:59 PM   #6
Akuma
Administrator
 
Akuma's Avatar
 
Akuma is offline
Join Date: Apr 2007
Location: Texas, USA
Posts: 799
Default

Can't really help debug it unless there is an error message or I could see what you did exactly. Sure you're pressing ctrl+space after installing it?
  Reply With Quote
Reply

Tags
gallery, keyboard, load, photo, shortcut


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Total page views: , page views today: 0
All times are GMT. The time now is 11:36 PM.


Powered By vBulletin®
©AnimeOTK.com 2007-2021