Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run TM script on GitHub #1699

Closed
ghost opened this issue Feb 1, 2023 · 1 comment
Closed

Can't run TM script on GitHub #1699

ghost opened this issue Feb 1, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Feb 1, 2023

This is related to #881

Expected Behavior

I am trying to run a simple script on GitHub that modifies some elements on the page. This script is able to run on Chrome but not FireFox.

Actual Behavior

It appears to fail a CSP and blocks the script from executing

Specifications

  • FF: 109.0.1 (64-bit)
  • TM: v4.18.1
  • OS: macOS Monterey 12.0 (21A344)

Script

(Please give an example of the script if applicable.)

// ==UserScript==
// @name         JUST A TESTER
// @namespace    n/a
// @version      0.1
// @description  TEST
// @author       n/a
// @match        https://github.com/*/*/pull/*
// @icon         none
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    console.log("I AM ALIVE!");
})();

This wont output to the console,. This is suppose to run on any repo's "pull request" page (i.e #1356). I have a more fleshed out script but I can't even get this it cout.

@ghost
Copy link
Author

ghost commented Feb 1, 2023

Im closing this because it was an anomaly. I hard restarted my browser and its working now. Cheers!

@ghost ghost closed this as completed Feb 1, 2023
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants