Item logo image for Custom JavaScript for Websites 2

Custom JavaScript for Websites 2

4.4(

129 ratings

)
ExtensionDeveloper Tools50,000 users

56 support issues

For additional help, check out the developer's support site.

  • All
  • Questions
  • Suggestions
  • Problems

Serdar Degirmenci

Oct 25, 2024

Google removes this extension

This was one of my favorite extensions; thank you for developing it. I would be very happy if you consider making it open-source. Best regards.​

Lenin Zapata

Feb 19, 2024

Dark Mode?

Hello, I would like the extension to have Dark Mode, because my views burn a little when editing code. Thank you very much.

Jovan Ralić

Jul 22, 2023

Website unresponsive

Hi! Thank you for this great tool. I needs some help. Can't add JS to this website. Random page: https://torrentz2.nz/search?q=Fire+of+Love The code I've tried: document.addEventListener('DOMContentLoaded', function() { try { // Select all the elements with the class 'dl dt a' let elements = document.querySelectorAll('dl dt a'); if (elements.length === 0) { throw new Error("No elements found with the selector 'dl dt a'."); } // Iterate over the elements for (let i = 0; i < elements.length; i++) { // Add the 'full-hd' class elements[i].classList.add('full-hd'); } } catch (error) { console.error('An error occurred:', error); } });

Mihail Antibor

Jun 7, 2023

have error on a BPS shipping carrier site


jquery-migrate-1.2.1.js:21 JQMIGRATE: Logging is active
jquery-migrate-1.2.1.js:41 JQMIGRATE: jQuery.fn.live() is deprecated
migrateWarn @ jquery-migrate-1.2.1.js:41
jquery-migrate-1.2.1.js:43 console.trace
migrateWarn @ jquery-migrate-1.2.1.js:43
newsletterchancel.aspx:1 Failed to load resource: the server responded with a status of 404 ()
retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1947 1-1-1
VM69 run.js:2 Custom JavaScript for websites enabled.
Please visit https://xcv58.xyz/inject-js if you have any issue.
connect.facebook.net/en_US/fbevents.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
jquery-migrate-1.2.1.js:41 JQMIGRATE: jQuery.fn.attr('selected') may use property instead of attribute
migrateWarn @ jquery-migrate-1.2.1.js:41
jquery-migrate-1.2.1.js:43 console.trace
migrateWarn @ jquery-migrate-1.2.1.js:43
VM69 run.js:2 Custom JavaScript for websites enabled.
Please visit https://xcv58.xyz/inject-js if you have any issue.
retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1547 Uncaught TypeError: $(...).valid is not a function
at HTMLInputElement.<anonymous> (retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1547:30)
at Function.each (VM151 jquery.min.js:2:2715)
at r.fn.init.each (VM151 jquery.min.js:2:1003)
at HTMLInputElement.ValidateAndSubmit (retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1546:77)
at HTMLInputElement.dispatch (jquery.js:6:10283)
at r.handle (jquery.js:6:6305)
retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1377 Uncaught TypeError: $(...).modal is not a function
at Object.success (retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1377:54)
at i (VM151 jquery.min.js:2:28017)
at Object.fireWith [as resolveWith] (VM151 jquery.min.js:2:28783)
at A (VM151 jquery.min.js:4:14035)
at XMLHttpRequest.<anonymous> (VM151 jquery.min.js:4:16323)
VM69 run.js:2 Custom JavaScript for websites enabled.
Please visit https://xcv58.xyz/inject-js if you have any issue.
retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1377 Uncaught TypeError: $(...).modal is not a function
at Object.success (retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1377:54)
at i (jquery.min.js:2:28017)
at Object.fireWith [as resolveWith] (jquery.min.js:2:28783)
at A (jquery.min.js:4:14035)
at XMLHttpRequest.<anonymous> (jquery.min.js:4:16323)
success @ retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1377
i @ jquery.min.js:2
fireWith @ jquery.min.js:2
A @ jquery.min.js:4
(anonymous) @ jquery.min.js:4
load (async)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
(anonymous) @ retouren.aspx?session=088fbb5b88ef465c83baba1ef2a61070:1364
dispatch @ jquery.js:6
r.handle @ jquery.js:6
run.js:2 Custom JavaScript for websites enabled.
Please visit https://xcv58.xyz/inject-js if you have any issue.
apps-fileview.texmex_20230525.01_p2
srv02.bps-germany.com-1686146351289.log
Zoomed out of item.




**********************************
my cusotm code - when user CTRL+V on page - a previosly copied fileds are filled into a form


if (typeof isJson !== "undefined") {
function isJson(str) {
try {
JSON.parse(str);
} catch (e) {
return false;
}
return true;
}
}

document.addEventListener('paste', function(event) {
var cb = event.clipboardData;
var pastedContent = cb.getData("text/plain")

if(isJson(pastedContent))
{
addr_ = JSON.parse(pastedContent);

$.each( addr_, function( key, value ) {

$("input[name*='"+ key.trim() +"']").val(value);

A.

May 19, 2023

CSS is wrongly inserted as JS, causing SyntaxError

Hello, I am a long time user of this extension, so first of all thanks for your work.
I know there are other extensions more specific for CSS, but I noticed that yours could also deal with that, so I just decided to give it a quick try but I found a problem: even after selecting CSS from the extension drop down menu and saving the code as that, it will end up being added as JS, causing this error in the JS console:

SyntaxError:
Unexpected token '.' (at data:text/javascript;base64,Lnl0cC1wYXVzZS1vdmVybGF5LWNvbnRhaW5lciwgLnl0cC1wYXVzZS1vdmVybGF5IHsgCiAgZGlzcGxheTogbm9uZSFpbXBvcnRhbnQKfQ==:1:1)

I hope you can fix it soon, if you need any other info from me just let me know.

Ka Ming Lock (Martin Lock)

Mar 20, 2023

Can not load data, please try to open a new window and try again.

error shows up and i cannot modify my code
"Can not load data, please try to open a new window and try again."
even if i click "open new window" same thing happen

Michael Orschel

Mar 18, 2023

extension breaks steam checkout

when the extension is enabled at all (doesn't matter if I "disable for this domain") steam's website starts to act up. For example, the checkout flow stops working entirely when trying to buy a game. Perhaps "disabling for this domain" could be made even more strict

No One (VegaQ8)

Sep 13, 2022

how to backup all?

is there way to backup all scripts i use ?

Mattia Cardile

Aug 20, 2022

Script runs when extension is disabled for that host

The script I created for a website runs when the extension is disabled for the website in question

Zaid Foster

Aug 20, 2022

Automatically Start on certain Pages

Hi! Great Extension!

Is there a way to automatically start the extension, without having to reload the page after pressing "Save"?

Google apps