#644 new

Error with some tampermonkey script.

Reported by Cristian | October 7th, 2020 @ 07:58 AM

Provide the following information:

  1. Your operating system (and version)
    Windows 7 Proffesional
  2. Your browser (and version)
    Google Chrome Versión 85.0.4183.121 (Build oficial) (64 bits)
  3. The version of Scriptish you are using
    Tampermonkey v4.11
  4. Your language and/or locale (e.g. "en-US")
  5. Clear steps to reproduce the bug (including a reduced-case user script, if applicable)
    // ==UserScript== // @name bot1.js // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author DrFrank // @match / // @grant none // @require https://unpkg.com/brain.js@2.0.0-beta.2/dist/brain-browser.min.js // ==/UserScript==

GM_setValue(obj,val) }

return GM_getValue(obj) }

save("a",prompt("Hola. ¿Cómo te llamas?"))
console.log("Encantado de conocerte, "+load("a")+".")

  1. Any error messages seen in the Error Console
    userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1 ERROR: Execution of script 'bot1.js' failed! GM_setValue is not defined
    eval @ userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1
    eval @ userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1
    eval @ userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:42
    eval @ userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:44
    (anonymous) @ VM145:3 N @ VM145:2
    (anonymous) @ VM145:3 Ka @ VM150:61
    create @ VM150:73
    L @ VM150:12
    setTimeout (async)
    (anonymous) @ VM145:3 H. @ VM145:9
    eval @ VM150:12
    runListeners @ VM150:12
    eval @ VM150:74
    Aa @ VM145:11
    send @ content.js:7
    (anonymous) @ content.js:28 processQueue @ content.js:3
    a @ content.js:9
    userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1 ReferenceError: GM_setValue is not defined
    at save (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:32) at Window.eval (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:39) at :3:100 at eval (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1) at eval (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:1) at eval (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:42) at eval (userscript.html?name=bot1.js.user.js&id=871642b3-3f17-486d-a674-9f3b6e6e3630:44) at eval () at :3:100 at Object.N as F_c
  2. A description of what you expected to happen
    Show a message of "Encantado de conocerte "+ name of user which he introduced.
  3. A description of what actually happened
    An uknown error which I can't explain.

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket