Giter Site home page Giter Site logo

Comments (7)

chylex avatar chylex commented on September 27, 2024

Which browser did you use to copy the code?

from discord-history-tracker.

Lyrina25 avatar Lyrina25 commented on September 27, 2024

Google chrome

from discord-history-tracker.

chylex avatar chylex commented on September 27, 2024

Both Copy to Clipboard and copying link to tracker script work fine in Chrome 64, so I can't reproduce the issue. Try disabling extensions and clipboard managers if you have any. If nothing works, paste the script into https://gist.github.com and send a link so I can take a look.

from discord-history-tracker.

Lyrina25 avatar Lyrina25 commented on September 27, 2024

Alright, well disabling all my extensions didn't work, so here's the code I'm getting when i click 'copy to clipboard' and copy the code.

javascript:(function(){var e=function(){var n=function(){let e=t.s("messages");return e&&e.children.length&&e.children[0]},s=0,i=0;return{i:function(e){var a=function(){let s=n();if(s)if(s.classList.contains("loading-more"))r(25);else{let n=t.s("messages").children.length;n<100&&(i=0),i>0?(--i,r(750)):(n>300&&(i=6,t.o(()=>{let e=t.s("messages");e.scrollTop=e.scrollHeight/2},1)),e(s.classList.contains("has-more")),r(200))}else r(500)},r=function(e){s=t.o(a,e)};a(),window.l.push(()=>window.clearInterval(s))},h:function(e){var t=Object.keys(e||{}).find(e=>e.startsWith("__reactInternalInstance"));return t?e[t].memoizedProps:null},g:function(){try{var n,s,i=t.s("private-channels");if(i){if(!(s=t.s("selected",i)).classList.contains("private"))return null;var a=t.p("a",s).href.split("/"),r=[].find.call(t.s("channel-name",s).childNodes,e=>e.nodeType===Node.TEXT_NODE).nodeValue;if(!r)return null;n={server:r,channel:r,id:a[a.length-1],type:t.v("status",s).length?"DM":"GROUP"}}else{s=(i=document...{return this.G()._e(e)},i.prototype.Z=function(t){e.push(t)},new i}();if(!window.location.href.includes("discordapp.com/")&&!confirm("Could not detect Discord in the URL, do you want to run the script anyway?"))return;if(window.DHT_LOADED)return void alert("Discord History Tracker is already loaded.");window.DHT_LOADED=!0,window.l=[];let l=!1,c=function(e){l=!0,t.o(()=>{o.ae();l=!1;e&&e()},200)};e.i(t=>{if(o.R()&&!l){let n=e.g();if(!n)return void c();o.Ee(n.server,n.type,n.id,n.channel);let s=e.T();if(!s.length)return void e.A();let a=o.Re(n.id,s);if(r.autoscroll){let n=i.he;a||o._e(s[0].id)?t||(n=r.afterFirstMsg):n=r.afterSavedMsg,n===i.pe&&!e.C()||n===i.ge?o.ae():e.A()}}}),o.Z((t,n)=>{if("tracking"===t&&n){let t=e.g();if(!t)return void c(()=>alert("The selected channel is not visible in the channel list."));if(o.Ee(t.server,t.type,t.id,t.channel),o.Re(t.id,e.T()),r.autoscroll&&e.S())if(e.O())e.A();else{let t=r.afterFirstMsg;(t===i.pe&&!e.C()||t===i.ge)&&c()}}}),n.Y(),a&&n.ie();})()

from discord-history-tracker.

chylex avatar chylex commented on September 27, 2024

I wanted gist because the code is like 13 thousand characters, not 20 lines. Your browser is copying it wrong, idk why.

from discord-history-tracker.

Lyrina25 avatar Lyrina25 commented on September 27, 2024

Is there anywhere else to get the code?

from discord-history-tracker.

chylex avatar chylex commented on September 27, 2024

Try saving it as a bookmark or use a different browser.

from discord-history-tracker.

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.