Giter Club home page Giter Club logo

Comments (8)

mezmi avatar mezmi commented on July 30, 2024 2

It was a glitch in the Matrix.

from sox.

shu8 avatar shu8 commented on July 30, 2024

fixed

from sox.

mezmi avatar mezmi commented on July 30, 2024

@shu8

The version number is being injected, but, with that code running in a loop I am unable to type or select text from within the issue body.

The looped code should stop executing after the first successful injection of the version number.

We should also change the URL from github.com to github.com/soscripted/sox/issues/new and set a bool flag after it's ran.. What do you think?

from sox.

shu8 avatar shu8 commented on July 30, 2024

@enki-code

bool-flag, yes.

but if we change the match URL to that issue link, then it will only work if you land directly onto that page (remember the issue where you needed to refresh to make it work).

from sox.

shu8 avatar shu8 commented on July 30, 2024

@enki-code but it works for me... I can type and select... or do you mean somewhere else??

from sox.

mezmi avatar mezmi commented on July 30, 2024

I was just coming to update my comment on the url.. you're right, that wouldn't work. 👍 In the issue body, I cannot type or select text because every 2 seconds the text is being replaced

from sox.

shu8 avatar shu8 commented on July 30, 2024

@enki-code Do you not have the return;? That should escape the setInterval..

setInterval(function() {
    if($('#issue_body').length) {
        var $issue = $('#issue_body'),
            issueText = $issue.text();
        issueText = issueText.replace('1.X.X', SOX_VERSION); //inject the SOX version by replacing the issue template's placeholder '1.X.X'
        issueText = issueText.replace('Chrome/Tampermonkey', SOX_MANAGER); //inject the SOX userscript manager+platfirm by replacing the issue template's placeholder 'Chrome/Tampermonkey'
        $issue.text(issueText);
   }
   // on GitHub, stop execution of the rest of the script.
   return;
}, 2000);

from sox.

shu8 avatar shu8 commented on July 30, 2024

Issue seems to have been random and neither of us can reproduce. Closing again...

from sox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.