Bookmarklets do not work with github pages

For support with specific websites

Moderator: trava90

Forum rules
Please always mention the name/domain of the website in question in your topic title.
Please one website per topic thread (to help keep things organized). While behavior on different sites might at first glance seem similar, they are not necessarily caused by the same.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:
  1. Clear any current output
  2. Navigate or refresh the page in question
  3. Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.
Goodydino
Keeps coming back
Keeps coming back
Posts: 856
Joined: 2017-10-10, 21:20

Bookmarklets do not work with github pages

Unread post by Goodydino » 2024-12-07, 20:38

Please always mention the name/domain of the website in question in your topic title.

Please try to include any relevant output from the Toolkit Error Console or the Developer Tools Web Console using the following procedure:

1) Clear any current output
2) Navigate or refresh the page in question
3) Copy and paste Errors or seemingly relevant Warnings into a single [ code ] block.

Code: Select all

13:30:21.962 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js:1:2011
13:30:21.962 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js:1:3022
13:30:21.962 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js:1:3711
13:30:21.962 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js:1:3760
13:30:21.962 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_delegated-events_dist_index_js-node_modules_github_catalyst_lib_index_js-f6223d90c7ba.js:1:4615
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:1160
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:1351
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:1651
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:2353
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:3364
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:4053
13:30:21.967 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:4102
13:30:21.968 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_mini-throttle_dist_decorators_js-node_modules_delegated-events_di-e161aa-c2a0ad78c9c9.js:1:4957
13:30:22.125 SyntaxError: mistyped ; after conditional?  
primer-react-ce1a90e9cdd1.js:77:2903
13:30:22.125 SyntaxError: mistyped ; after conditional?  
primer-react-ce1a90e9cdd1.js:77:3176
13:30:22.148 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-core-1ada1e52492b.js:10:22476
13:30:22.148 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-core-1ada1e52492b.js:10:24981
13:30:22.160 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:13708
13:30:22.161 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:41617
13:30:22.161 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:41710
13:30:22.161 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:47444
13:30:22.162 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:77440
13:30:22.182 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js-4896ddd4b7bb.js:1:2389
13:30:22.189 ReferenceError: reference to undefined property "prefix"[Learn More]  
vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-37e3d5-31653d7f2342.js:1:8448
13:30:22.190 ReferenceError: reference to undefined property "Buffer"[Learn More]  
vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-37e3d5-31653d7f2342.js:8:2886
13:30:22.199 ReferenceError: reference to undefined property 1[Learn More]  
react-core-1ada1e52492b.js:28:11934
13:30:22.201 ReferenceError: reference to undefined property "colors"[Learn More]  
react-core-1ada1e52492b.js:10:52678
13:30:22.202 ReferenceError: reference to undefined property "$$typeof"[Learn More]  
vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-37e3d5-31653d7f2342.js:1:15547
13:30:22.203 ReferenceError: reference to undefined property "propTypes"[Learn More]  
primer-react-ce1a90e9cdd1.js:50:22357
13:30:22.441 SyntaxError: mistyped ; after conditional?  
primer-react-ce1a90e9cdd1.js:77:2903
13:30:22.441 SyntaxError: mistyped ; after conditional?  
primer-react-ce1a90e9cdd1.js:77:3176
13:30:22.464 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-core-1ada1e52492b.js:10:22476
13:30:22.464 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-core-1ada1e52492b.js:10:24981
13:30:22.478 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:13708
13:30:22.478 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:41617
13:30:22.478 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:41710
13:30:22.479 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:47444
13:30:22.479 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
react-lib-7b7b5264f6c1.js:25:77440
13:30:22.525 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_oddbird_popover-polyfill_dist_popover-fn_js-4896ddd4b7bb.js:1:2389
13:30:22.530 ReferenceError: reference to undefined property "idx"[Learn More]  
react-core-1ada1e52492b.js:10:733
13:30:22.532 ReferenceError: reference to undefined property "event"[Learn More]  
react-lib-7b7b5264f6c1.js:25:92532
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:3213
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:3404
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:3704
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:4406
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:5417
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:6106
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:6155
13:30:22.533 SyntaxError: test for equality (==) mistyped as assignment (=)?[Learn More]  
vendors-node_modules_github_remote-form_dist_index_js-node_modules_delegated-events_dist_inde-94fd67-9df03b4ed507.js:1:7010
13:30:22.565 SyntaxError: mistyped ; after conditional?  
ui_packages_query-builder-element_query-builder-element_ts-0abc7fc682df.js:1:9961
13:30:22.566 ReferenceError: reference to undefined property 0[Learn More]  
app_assets_modules_github_behaviors_ajax-error_ts-app_assets_modules_github_behaviors_include-d0d0a6-0e9fa537dc4f.js:106:5284
13:30:22.570 ReferenceError: reference to undefined property "style"[Learn More]  
ui_packages_query-builder-element_query-builder-element_ts-0abc7fc682df.js:1:14787
13:30:22.590 ReferenceError: reference to undefined property "parsing"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:6:4634
13:30:22.607 ReferenceError: reference to undefined property "prototype"[Learn More]  
react-lib-7b7b5264f6c1.js:25:114851
13:30:22.607 ReferenceError: reference to undefined property "isPropUpdateDisabled"[Learn More]  
primer-react-ce1a90e9cdd1.js:71:56058
13:30:22.608 ReferenceError: reference to undefined property "$$typeof"[Learn More]  
vendors-node_modules_emotion_is-prop-valid_dist_emotion-is-prop-valid_esm_js-node_modules_emo-37e3d5-31653d7f2342.js:1:13887
13:30:22.649 ReferenceError: reference to undefined property "type"[Learn More]  
react-lib-7b7b5264f6c1.js:25:50419
13:30:22.650 ReferenceError: reference to undefined property "childContextTypes"[Learn More]  
react-lib-7b7b5264f6c1.js:25:42515
13:30:22.650 ReferenceError: reference to undefined property "basename"[Learn More]  
react-core-1ada1e52492b.js:28:9476
13:30:22.650 ReferenceError: reference to undefined property "$$typeof"[Learn More]  
react-lib-7b7b5264f6c1.js:25:49328
13:30:22.651 ReferenceError: reference to undefined property "_reactRootContainer"[Learn More]  
react-lib-7b7b5264f6c1.js:25:90028
13:30:23.592 window.controllers is deprecated. Do not use it for UA detection.  
releases
13:30:23.606 ReferenceError: reference to undefined property "baseContext"[Learn More]  
vendors-node_modules_github_quote-selection_dist_index_js-node_modules_github_session-resume_-69cfcc-ceb1758d1876.js:11:21090
13:30:23.711 ReferenceError: reference to undefined property "caretPositionKind"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:1:2726
13:30:23.711 ReferenceError: reference to undefined property "caretPositionKind"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:3:4462
13:30:23.711 ReferenceError: reference to undefined property "caretPositionKind"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:1:11305
13:30:23.711 ReferenceError: reference to undefined property "caretPositionKind"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:3:8890
13:30:23.711 ReferenceError: reference to undefined property "caretPositionKind"[Learn More]  
chunk-app_components_search_qbsearch-input-element_ts-9e809781a6ea.js:3:18226
13:30:28.688 Content Security Policy: The page's settings blocked the loading of a resource at inline ("script-src").
I pasted the code from the web console. I was unable to select more than one item at a time from the error console.
One of the github pages: https://github.com/martok/palefill/releases
Bookmarklets that give readily visible results do nothing. I have some that change colours on pages, some that will list stylesheets, scripts, images, and one that shows a table with ASCII codes. There is no result with github pages. Why is that?

User avatar
adoxa
Lunatic
Lunatic
Posts: 320
Joined: 2019-03-16, 13:26
Location: Qld, Aus.
Contact:

Re: Bookmarklets do not work with github pages

Unread post by adoxa » 2024-12-07, 23:29

I went to that page, created a bookmarklet to change the colour of li elements, ran it, worked. With all those errors there I'd say you've got other problems; the only error I have is an invalid selector.

0strodamus
Fanatic
Fanatic
Posts: 143
Joined: 2014-11-19, 19:48

Re: Bookmarklets do not work with github pages

Unread post by 0strodamus » 2024-12-08, 04:39

Try toggling security.csp.enable to false in about:config.

Goodydino
Keeps coming back
Keeps coming back
Posts: 856
Joined: 2017-10-10, 21:20

Re: Bookmarklets do not work with github pages

Unread post by Goodydino » 2024-12-08, 22:52

0strodamus wrote:
2024-12-08, 04:39
Try toggling security.csp.enable to false in about:config.
That worked. Thanks. Apparently, CSP is supposed to reduce security threats. What kind of threats?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36835
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Bookmarklets do not work with github pages

Unread post by Moonchild » 2024-12-08, 23:57

CSP is primarily to combat cross-site scripting. Basically to prevent scripts from running on a page that were not part of the website/not authorized. If a foreign script can e.g. be injected into a login screen, it could steal your credentials.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Goodydino
Keeps coming back
Keeps coming back
Posts: 856
Joined: 2017-10-10, 21:20

Re: Bookmarklets do not work with github pages

Unread post by Goodydino » 2024-12-09, 19:37

Why did my bookmarklets work with most sites but not github? Is github doing something extra with CSP?

User avatar
Moonchild
Pale Moon guru
Pale Moon guru
Posts: 36835
Joined: 2011-08-28, 17:27
Location: Motala, SE
Contact:

Re: Bookmarklets do not work with github pages

Unread post by Moonchild » 2024-12-10, 01:49

Goodydino wrote:
2024-12-09, 19:37
Why did my bookmarklets work with most sites but not github? Is github doing something extra with CSP?
They probably have an exceedingly strict policy in place, since they are hosting code and all.
"The world will not be destroyed by those who do evil, but by those who watch them without doing anything." - Albert Einstein
"Seek wisdom, not knowledge. Knowledge is of the past; wisdom is of the future." -- Native American proverb
"Linux makes everything difficult." -- Lyceus Anubite

Post Reply