Skip to content

Instantly share code, notes, and snippets.

@digi0ps
Last active May 4, 2024 14:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save digi0ps/763a345a307af8d7ae4ee17b778b0ef6 to your computer and use it in GitHub Desktop.
Save digi0ps/763a345a307af8d7ae4ee17b778b0ef6 to your computer and use it in GitHub Desktop.
Hack for skillrack copy paste
/*
-----------------------------
Paste into skillrack shortcut.
-----------------------------
Open console in your browser by pressing Ctrl+Shift+J in Chrome Windows.
Or right click the webpage, select inspect element and then change to console tab.
Paste the code you want into the quotes given in variable CODE and then paste the entire thing into
the console. And then press enter.
BUGS rn:
- Long line causes a major code shitbreak, so try to avoid those.
- Too hectic to copy paste into console everything ( solution: make an extension )
*/
var CODE = `
Paste your code inside here without removing these quotes
`;
(function(){
var editor_id = $(".ace_editor.ace_dark")[0].id;
var editor = ace.edit(editor_id);
editor.$blockScrolling = Infinity;
X = CODE.split(" ");
editor.setValue("");
for(var i=0;i<X.length;i++){
editor.insert(X[i]+" ");
var row = editor.session.getLength() - 1;
var column = editor.session.getLine(row).length;
editor.gotoLine(row + 1, column);
}
})();
@kedarlin
Copy link

banned ah !??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment