Item logo image for JScript tricks

JScript tricks

4.2(

50 ratings

)
ExtensionDeveloper Tools2,000 users

29 support issues

  • All
  • Questions
  • Suggestions
  • Problems

James E Burns

Apr 14, 2019

Options page no longer shows more than default in list

1.) Create and save js or css for multiple sites/domains in JScript Tricks
2.) Go to Options page for JScript Tricks
3.) On the left hand side, notice that only "Default" is listed instead of every domain you saved js and css for

In the chrome console, I see the following error:

options.html:1 Uncaught SyntaxError: Unexpected token u in JSON at position 1
at JSON.parse (<anonymous>)
at run (options.js:121)
at save (options.js:58)
at run (options.js:103)
at HTMLDocument.<anonymous> (options.js:377)
at o (jquery.js:2)
at Object.fireWith (jquery.js:2)
at Function.ready (jquery.js:2)
at HTMLDocument.B (jquery.js:2)

Options.js:
========
for(k in keys)
{
var v = keys[k];
var lsd = JSON.parse(localStorage[v]); <<< problem
addMenuBox(v,lsd);

}

Charles Ellis

Oct 11, 2017

Lost Data

Restarted computer (Linux) and my Default script is blank. I've saved the file many times. How can I recover my 1000+ lines of code?

PC User

Jun 14, 2017

save script data to google drive "encrypted"

save script data to google drive "encrypted" and then signing in with another browser it can reverify using a password.

PC User

Jun 14, 2017

Add code igniter highlighting

Add code igniter highlighting

James Burns

Mar 30, 2017

CMD+S doesn't save on a Mac - Lose data with CMDL+S

For this extension running on a Windows machine, using Ctrl+S with the JScript Editor open prevents the browser's default "Save Page" feature from executing and then calls JScript Edtor to save the script data in the editor.

The CTRL+S is command is native to Windows users but Mac users use CMD+S for saving. When you use CMD+S, the behavior isn't the same as the WIndows machine and the "Save Page" dialog appears, which closes the JScript Editor without saving.

Please make CMD+S (and maybe also CTRL+S) save in JScript Editor. I think you can detect the OS with the browser information.

Никита Карпов

Aug 5, 2016

global variables

Can I get window object on current page, to set or get global variables?

A Chrome Web Store user

Mar 29, 2016

Script

How i have to edit this to work?

javascript:var progressElm=$("<div>da</div>");$("#am_widget_Farm").before(progressElm);var total=$(".farm_icon_a").length;var farms=$(".farm_icon_a");var fasend=function(a){if(a==total)return;$(farms[a]).trigger("click");progressElm.html(a+" / "+total);setTimeout("fasend("+a+"+1)",250+Math.random(150))};fasend(0);

Joyce Willems

Dec 5, 2015

Open-source or plugin/addon/package manager

Any chance making it opensource on for example git or something?

Or something like a plugin/addon/package manager?

Letting others reviewing your source could (will for sure) speed up improvements, fixes and adding more great options

Guess alot would love to help adding syntax highlighting, cloud api intergrations, some basic script manupilation functions every desktop editors have, like: search/replace, folding, custom content styling (size,color,tab-indents etc) some great little helpers like: colorpickers, url/base64 encoders/decoders, script minifiers/obfusicators, xml/json viewers/parsers etc etc)


Regards,

Joyce

Joyce Willems

Dec 5, 2015

Save/load import/export or download button for scripts

considering losing all my precious scripts because i cleaned my browser cache myself or because apps like "Bleachbit" or "CCleaner" clean it for me!

It would be GREAT and more save if there is an choice/option to save/load and/or import/export scripts on Dropbox or GoogleDrive or just simply an "download scripts" button generating an zip file containing all scripts where filename.js/css is the domain its intended for)

Terry DeSimone

Nov 11, 2015

Export ?

after using multiple programs to clean cache or whatever happened.. all my saved scripts were gone :(
and i cant manually re-add them either.

SUGGESTIONS:
----------------------------

1.) allow importing/exporting script file (JSON, XML, CSV)

2.) allow to manually add sites (form)

Google apps