2

I got question like this, how to get information from one web url for example and use it in another url

// ==UserScript==
// @name         test
// @description  try to take over the world!
// @author       You
// @version      0.1
// @grant    GM_setValue
// @grant    GM_getValue
// @grant    GM_openInTab
// @grant    GM_SuperValue
// @include       https://tynachofinder.ge/*
// @include       https://tynachofinder.ge/finder/*
// @require       http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js
// @require https://userscripts-mirror.org/scripts/source/107941.user.js
// ==/UserScript==

GM.setValue("discord", document.querySelector(".site-btn").innerText);

document.querySelector(".header-section.clearfix").innerHTML = (
    GM.getValue("discord")
);

something like this how to make it working

saulotoledo
  • 1,737
  • 3
  • 19
  • 36
d4vit
  • 21
  • 3
  • 1
    What are the results you are expecting, what happens instead? Your code seems missing an `if (location.href==...)` before the get/setValue-statements. – CennoxX Apr 09 '20 at 13:22

0 Answers0