Adding Javascript to Sharepoint Online Modern page? Cant find how to do it.

%3CLINGO-SUB%20id%3D%22lingo-sub-1394929%22%20slang%3D%22en-US%22%3EAdding%20Javascript%20to%20Sharepoint%20Online%20Modern%20page%3F%20Cant%20find%20how%20to%20do%20it.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1394929%22%20slang%3D%22en-US%22%3E%3CP%3EI%20need%20to%20add%20a%20Javascript%20to%20sharepoint%20online%20Modern%20page%20in%20order%20to%20be%20able%20to%20hide%20the%20Gear%20Icon%20(Settings)%20for%20certain%20users.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESomeone%20already%20provided%20the%20code%20but%20cant%20find%20a%20way%20to%20upload%20it.%20Is%20there%20an%20editor%20or%20something.%20I%20am%20a%20total%20newbie%20to%20SPO%20Modern%20Sites.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1394929%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1394957%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20Javascript%20to%20Sharepoint%20Online%20Modern%20page%3F%20Cant%20find%20how%20to%20do%20it.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1394957%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F669813%22%20target%3D%22_blank%22%3E%40RicardoC15%3C%2FA%3E%26nbsp%3Bthere%20is%20no%20script%20editor%20in%20the%20modern%20experience%2C%20nor%20(out-of-the-box)%20can%20you%20change%20the%20CSS%20so%20you%20won't%20at%20the%20moment%26nbsp%3B%20be%20able%20to%20hide%20the%20gear.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERob%3CBR%20%2F%3ELos%20Gallardos%3CBR%20%2F%3E%3CFONT%20size%3D%222%22%20color%3D%22%23333399%22%3EMicrosoft%20Power%20Automate%20Community%20Super%20User%3C%2FFONT%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Visitor

I need to add a Javascript to sharepoint online Modern page in order to be able to hide the Gear Icon (Settings) for certain users.

 

Someone already provided the code but cant find a way to upload it. Is there an editor or something. I am a total newbie to SPO Modern Sites.

1 Reply
Highlighted

@RicardoC15 there is no script editor in the modern experience, nor (out-of-the-box) can you change the CSS so you won't at the moment  be able to hide the gear.

 

Rob
Los Gallardos
Microsoft Power Automate Community Super User