Update script.user.js
This commit is contained in:
@@ -1,12 +1,13 @@
|
|||||||
// ==UserScript==
|
// ==UserScript==
|
||||||
// @name RuneScape Wiki Ely Prices
|
// @name RuneScape Wiki Ely Prices
|
||||||
// @namespace https://ely.gg/
|
// @namespace https://ely.gg/
|
||||||
// @version 1.0.0
|
// @version 1.0.1
|
||||||
// @description Show Ely prices on RuneScape Wiki pages
|
// @description Show Ely prices on RuneScape Wiki pages
|
||||||
// @match https://runescape.wiki/w/*
|
// @match https://runescape.wiki/w/*
|
||||||
// @grant GM_xmlhttpRequest
|
// @grant GM_xmlhttpRequest
|
||||||
// @connect www.ely.gg
|
// @connect www.ely.gg
|
||||||
// @connect gist.yorgei.dev
|
// @connect git.yorgei.dev
|
||||||
|
// @downloadURL https://git.yorgei.dev/yorgei/rs-wiki-ely/raw/branch/main/script.user.js
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
(async function () {
|
(async function () {
|
||||||
@@ -42,8 +43,7 @@
|
|||||||
|
|
||||||
const originalCursor = pageTitleElement.style.cursor;
|
const originalCursor = pageTitleElement.style.cursor;
|
||||||
|
|
||||||
const dataResponse = await fetch(dataUrl);
|
const itemData = await gmFetchJson(dataUrl);
|
||||||
const itemData = await dataResponse.json();
|
|
||||||
|
|
||||||
const pageTitle = pageTitleElement.textContent.trim();
|
const pageTitle = pageTitleElement.textContent.trim();
|
||||||
const urlPath = window.location.pathname;
|
const urlPath = window.location.pathname;
|
||||||
|
|||||||
Reference in New Issue
Block a user