JScript tricks icon

JScript tricks

Extension Actions

CRX ID
odialddippdmebbfbflcneemfdglimod
Description from extension meta

You can trick any page! Add your own JavaScript (powered by JQuery) and/or CSS to any page.

Image from store
JScript tricks
Description from store

#### App development suspended ####
This app allows you to inject your own JavaScript or CSS tricks to any page (by domain). You can use nice editor (from CodeMirror), which has nice syntax highlighter. Script and CSS are applied after the page is loaded (document.onload event).

Script and css are injected before DOM creation. Use $(function(){ ... }) to start script on DOMReady.

New:
Export/Import scripts to/from text file.
bugs fixed

Features:
- auto save to cache + load cache button, separate for CSS and JS
- Automatic JQuery injection,
- custom JavaScript and CSS injection,
- popup to quick edit and apply tricks or selected text only,
- Autostart option,
- Default script for all pages,
- nice options interface,
- F1 JQuery help
- Ctrl+S support,
- Ctrl+Alt+H for hidden tricks!
- Cache to save current code

If you find a bug or need some features just let me know!

Example usage:

1. Search some image with Google Image search.
2. Click on the "JScript Tricks" icon and enter JS code:

//---beginig
// This code replace focused image title on Google Image search results by adding direct link to the picture.

if( location.href.match(/tbm\=isch/))
{
var interval = setInterval("initGL()",300);
}

function initGL(){
if($("#rg_h").length == 1)
{
if( $("#mylink").length == 0 )
{
$("#rg_hta").attr("href",$("#rg_hta").attr("href").match(/imgurl=([^\&]+)/)[1]);
$("#rg_hta").text(" » "+$("#rg_hta").text());
}
}
}

//-----end is here

3. Remember to save! (Ctrl+S)
4. Now refresh the page or press "Apply" to start script.
5. You can also check "Autostart" option.

In the option tab you can easily edit this entry!

Known Bugs:
- Some CSS cannot be applied correctly. You should use this syntax then:

$(document.head).find("style").append(".someCustomClass{some:styles}");

Latest reviews

Mario Biasi
It helps me with the problem of the AD-block alert always appearing, even if I removed any ad-blocker. The scripts I created work smoothly. I use the trick described in the description to wait for the DOM to be fully loaded. The missing star is because in the Settings page I dont see the list of websites with custom scripts. Only after clicking on "export" I can see the different scripts. Only DEFAULT is present in the Settings Any advise on that?
Aero Windwalker
A very powerful tool. But it should include "storage.sync" method so when using multiple computers, the scripts can be shared. Also, window in JScript tricks is not the same window in the webpage, making it less useful in many cases.
Aero Windwalker
A very powerful tool. But it should include "storage.sync" method so when using multiple computers, the scripts can be shared. Also, window in JScript tricks is not the same window in the webpage, making it less useful in many cases.
Edgardo Arias
falta html inyeccion
Plenty O'Tool
Una de las mejores y mas poderosas extensiones para programadores
Yunus emrah dursun
very usefull, ty man!
Yunus emrah dursun
very usefull, ty man!
k bars
auto start suddenly working, thanks
k bars
auto start suddenly working, thanks
James Burns
Great on Windows but the save keyboard shortcut on a Mac is not CMD+S. The "Save Page" dialog is appearing instead when CMD+S is pressed, closing the extension without saving the script. Please make this extension mac user friendly for another star.
James Burns
Great on Windows but the save keyboard shortcut on a Mac is not CMD+S. The "Save Page" dialog is appearing instead when CMD+S is pressed, closing the extension without saving the script. Please make this extension mac user friendly for another star.
Erik Kamphuis
This makes multi-page for loops possible on every website :)
Erik Kamphuis
This makes multi-page for loops possible on every website :)
Arshad
Auto Start not working.. Even I added following.. $(function(){ alert('OK'); });
Arshad
Auto Start not working.. Even I added following.. $(function(){ alert('OK'); });
David Macias Hurtado
Es la primera que consigo que funcione bien. Todas las demás no inyectan JS...
James E Burns
So far I haven't had any major issues using this extension. I really like it as it allows me to turn my common bookmarklets into keyboard shortcuts that just work when I am ready to use them. Thank you for this.
James E Burns
So far I haven't had any major issues using this extension. I really like it as it allows me to turn my common bookmarklets into keyboard shortcuts that just work when I am ready to use them. Thank you for this.
oxido
Aceasta aplicatie este superba, iti poti predefinii cod css sau jQuery pentru site-urile pe care le accesezi. De exemplu, poti da remove unui div care are class="ads", si poti seta reguli pentru fiecare site in parte. Custom AdBlocker ;)
Aditya Sriram
Exactly what was required. Simple yet effective.
Aditya Sriram
Exactly what was required. Simple yet effective.
曾浩
Useful!
曾浩
Useful!
Anonymous
Works great, does everything I expected. It would be great if it synced across devices, but it is good as it is.
Anonymous
Works great, does everything I expected. It would be great if it synced across devices, but it is good as it is.
Andrej Martinák
Well the UI could be less painfull for the eyes, but it does what it is supposed to do :)
Andrej Martinák
Well the UI could be less painfull for the eyes, but it does what it is supposed to do :)
Justin Ma
Auto start does not work, please fix it.
Justin Ma
Auto start does not work, please fix it.
Bobby Thomas
Very good tool. This tool meets my requirements. I use this tool to report the performance.timing values. The code gets executed onLoad of the page if autostart is used. Is there a way i can get it executed after completion of the pageload in autostart? loadEventEnd value is coming zero.
Bobby Thomas
Very good tool. This tool meets my requirements. I use this tool to report the performance.timing values. The code gets executed onLoad of the page if autostart is used. Is there a way i can get it executed after completion of the pageload in autostart? loadEventEnd value is coming zero.
Adrian Li
for some reason jquery isn't loading
Adrian Li
for some reason jquery isn't loading
Ilya K
Отличная весч! =)
Adrian Li
Auto start not working .... need manual run:< auto run resulting >> Uncaught ReferenceError: $ is not defined
Adrian Li
Auto start not working .... need manual run:< auto run resulting >> Uncaught ReferenceError: $ is not defined
Dirk De Smet
Autorun is still broken, this is (for me) the most crucial feature. Manually, by clicking the "play" button, my scripts run fine. Please try to fix the autorun feature...
Dirk De Smet
Autorun is still broken, this is (for me) the most crucial feature. Manually, by clicking the "play" button, my scripts run fine. Please try to fix the autorun feature...
Timur Matsiev
Helpful and good working tool!
Timur Matsiev
Helpful and good working tool!
Reece Pegues
Couldn't get it to apply the CSS after a page refresh unless I manually opened the app and clicked apply.
Reece Pegues
Couldn't get it to apply the CSS after a page refresh unless I manually opened the app and clicked apply.
PatV (PatV)
Très bon plugin dont on espère une belle évolution car très bon potentiel. La sauvegarde du code devrait en effet être systématique... Ne pourrait-on pas bénéficier de quelques fonctions bien utiles qui simplifieraient le travail ? Une doc un peu mieux fournie ?
Anonymous
good but we need to enable script+css to custom pages not just to whole domain
Anonymous
good but we need to enable script+css to custom pages not just to whole domain
Isaiah Odhner
It's very useful, and switching between js and css is sweet, but saving is awkward and unintuitive.