3 months ago
Fangs
The Trailblazer
They/them
442
442 Achievements
Forum Rank 1
Forum Threads: 11
Forum Comments: 139
General Rank 5
Starter Rank 1
Arena Rank 5
Campaign Rank 5
Gauntlet Rank 4
Cooking Rank 5
Crafting Rank 4
Farming Rank 5
Fishing Rank 5
Hunting Rank 4
Mining Rank 4
Tried this out and it's fantastic, thank you!
Report
Quote


3 months ago
Gaia
The Legion
Alone together
407
407 Achievements
Forum Rank 3
Forum Threads: 55
Forum Comments: 726
General Rank 5
Starter Rank 1
Arena Rank 5
Campaign Rank 5
Gauntlet Rank 3
Cooking Rank 4
Crafting Rank 4
Farming Rank 5
Fishing Rank 3
Hunting Rank 3
Mining Rank 4
This is such a lifesaver, thank you! and please notify me (us all?) if you manage to find something to keybind the arena as well. Even if it is just a ' start round' keybind it'd make my life so much easier.
Report
Quote
3 months ago
HerbalMoon
The Resourceful
She/her
232
232 Achievements
General Rank 3
Starter Rank 1
Arena Rank 1
Campaign Rank 1
Cooking Rank 3
Crafting Rank 3
Farming Rank 4
Fishing Rank 1
Hunting Rank 3
Mining Rank 2

For some reason, I can't get this to work. I noticed it says,

document.addEventListener('keydown', function(event) {

Does that mean I should press the down key plus whatever key I want to use? (Although that just moves the page down, so I'm not sure that's right, either.)

I changed the top key from q to a, so it reads:

if (event.key === 'a') {

but simply pressing the letter a doesn't make anything happen, so I'm not sure what to think.

Report
Quote
3 months ago
Travelle
The Determined
He/him
428
428 Achievements
General Rank 4
Starter Rank 1
Arena Rank 5
Campaign Rank 5
Gauntlet Rank 4
Cooking Rank 4
Crafting Rank 4
Farming Rank 5
Fishing Rank 4
Hunting Rank 4
Mining Rank 3
@WitchyWriter - It should just be the letters. After you go into campaign and press the "campaign" button specifically, where it brings you to your first encounter, can you try refreshing then try the keys again?
Report
Quote
3 months ago
HerbalMoon
The Resourceful
She/her
232
232 Achievements
General Rank 3
Starter Rank 1
Arena Rank 1
Campaign Rank 1
Cooking Rank 3
Crafting Rank 3
Farming Rank 4
Fishing Rank 1
Hunting Rank 3
Mining Rank 2

@Travelle I went out and back in again, got to the first screen, pressed A and nothing happened.

Closed the tab, changed it back to Q, went back to campaign...nothing.

Maybe it's my browser?

Report
Quote
3 months ago
Travelle
The Determined
He/him
428
428 Achievements
General Rank 4
Starter Rank 1
Arena Rank 5
Campaign Rank 5
Gauntlet Rank 4
Cooking Rank 4
Crafting Rank 4
Farming Rank 5
Fishing Rank 4
Hunting Rank 4
Mining Rank 3
@WitchyWriter - It is odd. I know you do have to refresh each time you start campaigning, maybe re-opening did not do the same thing? Only have to refresh once, but it has to be after you press the campaign button. What browser? Not sure if I can recreate it.
Report
Quote
3 months ago
HerbalMoon
The Resourceful
She/her
232
232 Achievements
General Rank 3
Starter Rank 1
Arena Rank 1
Campaign Rank 1
Cooking Rank 3
Crafting Rank 3
Farming Rank 4
Fishing Rank 1
Hunting Rank 3
Mining Rank 2

@Travelle Opera GX. I haven't tried to replicate it on a different Chromium browser that is more common, like edge. (Or even Brave, where I've had plenty of luck with Tampermonkey.)

Let me try on a couple of different browsers...

-----

I have no idea. I tried Brave...no.

Edge? No.

Edge with all the extensions turned off? Yes.

Okay, back to OGX.

Turn all extensions off? Yes.

Reactivate one by one? The only one I didn't turn back on is Google Docs Offline, so that might be it? Weird.

(Edited)
Report
Quote
3 months ago
Travelle
The Determined
He/him
428
428 Achievements
General Rank 4
Starter Rank 1
Arena Rank 5
Campaign Rank 5
Gauntlet Rank 4
Cooking Rank 4
Crafting Rank 4
Farming Rank 5
Fishing Rank 4
Hunting Rank 4
Mining Rank 3
@WitchyWriter - That is very weird, what an extension to cause issues haha
Report
Quote
3 months ago
HerbalMoon
The Resourceful
She/her
232
232 Achievements
General Rank 3
Starter Rank 1
Arena Rank 1
Campaign Rank 1
Cooking Rank 3
Crafting Rank 3
Farming Rank 4
Fishing Rank 1
Hunting Rank 3
Mining Rank 2
@WitchyWriter - That is very weird, what an extension to cause issues haha
I don't even think I have that extension on Edge, so...still no idea. xD
Report
Quote
3 months ago
Bone Copy
The Boneweaver
They/them
368
368 Achievements
Forum Rank 1
Forum Threads: 32
Forum Comments: 176
General Rank 4
Starter Rank 1
Arena Rank 4
Campaign Rank 5
Gauntlet Rank 4
Cooking Rank 4
Crafting Rank 4
Farming Rank 2
Fishing Rank 4
Hunting Rank 1
Mining Rank 4

no more semicolons or needing to reload the page

this still needs a gui and to, like, close modals on all pages and i bet the same thing for gauntlet and other stuff would be cool

(btw do encounter options and exploring again need to be different keybinds? i didnt want to change the functionality but it feels weird since they're in the same place, they are only coded differently in lw because the latter refreshes the page)

(you can make first option and explore again the same key if you want!)

// ==UserScript==
// @name Lorwolf Campaign Accessibility
// @namespace http://tampermonkey.net/
// @version 2.0
// @description Keyboard Bindings for Lorwolf
// @author T. & Bone Copy
// @grant none
// @match https://www.lorwolf.com/*
// @license MIT
// ==/UserScript==

(function() {
'use strict'

// You can change the keybinds to whatever you want. If you want to use arrow keys, use Arrow then the direction, ie. (event.key === 'ArrowUp')
const FIRST_OPTION_KEY = 'q'
const SECOND_OPTION_KEY = 'w'
const EXPLORE_AGAIN_KEY = 'e'
const FEED_ALL_KEY = 'f'
const CLOSE_MODAL_KEY = 'x'
const REFRESH_PAGE_KEY = 'r'

let areKeybindsActive = false

const keybindActions = {
[FIRST_OPTION_KEY]: () => clickButton(0),
[SECOND_OPTION_KEY]: () => clickButton(1),
[EXPLORE_AGAIN_KEY]: clickExploreAgain,
[FEED_ALL_KEY]: clickFeedAll,
[CLOSE_MODAL_KEY]: closeModal,
[REFRESH_PAGE_KEY]: () => window.location.reload()
}

const titleObserver = new MutationObserver(onTitleChange)

titleObserver.observe(document.querySelector('title'), { childList: true})
onTitleChange()

function onTitleChange(){
const isInCampaign = /https:\/\/www\.lorwolf\.com\/Campaign/.test(window.location.href)
if (isInCampaign && !areKeybindsActive) {
startUsingBindings()
}
if (!isInCampaign && areKeybindsActive) {
stopUsingBindings()
}
}

function startUsingBindings() {
areKeybindsActive = true
document.addEventListener('keydown', keydownListener)
}

function stopUsingBindings() {
areKeybindsActive = false
document.removeEventListener('keydown', keydownListener)
}

function keydownListener(event) {
if (keybindActions[event.key]) {
keybindActions[event.key]()
}
}

// Function to simulate a click on the explore buttons 0/1
function clickButton(optionId) {
const button = document.querySelector(`.exploreOption[data-option-id="${optionId}"]`)
if (button) {
button.click()
}
}

// Function to simulate a click on the "Explore Again" link
function clickExploreAgain() {
const exploreAgainLink = document.querySelector('.exploreAgainOption')
if (exploreAgainLink) {
exploreAgainLink.click()
}
}

// Function to simulate a click on the "Feed All" button
function clickFeedAll() {
const feedAllButton = document.querySelector('.partyFeedAllButton')
if (feedAllButton) {
feedAllButton.click()
}
}

// Function to close the modal and remove the backdrop
function closeModal() {
const closeButton = document.querySelector('.modal-header .close')
const modalBackdrop = document.querySelector('.modal-backdrop')
const wolfToyModal = document.getElementById('wolfToyRewardsModalContent')

if (closeButton) {
closeButton.click()
}

if (modalBackdrop) {
modalBackdrop.remove()
}

if (wolfToyModal) {
wolfToyModal.remove()
}
}
})()
(Edited)
Report
Quote

what came first, bone copy or bone paste?

Unsubscribe from Post
Subscribe to Thread
Recent
Subscribed
My posts
Subscribed
You are not subscribed to any threads.
My Threads
You do not have any threads.
Trees
Music
Shuffle
Theme
Enable to have Music selection based site activities.
Repeat
Enable to repeat the current song.
Volume
Dismiss
Not interested in music? Permanently dismiss this music player.
Bathing on an Arturas
Boil 'em, Mash 'em
Canictonis Crossing
Dreaming About You
Embarking
Fields of Loria
First Snow
Follow the Leader
Good Morning, Challengers
Haunted Cave
Head in the Clouds
Into the Deep
Lone Wolf
Moonsblessings
Mosey Through the Forums
Nothing but Time
Play Date With Nana
Queueing Up
Silly Walk
Sleepy Wolves
Sploosh
Sunken Melody
The Mighty Remain
Through Goldsea
What to Buy?