Wikipedia talk:User scripts/Guide: Difference between revisions

Content deleted Content added
m Line breaks
Dimpizzy (talk | contribs)
Weird syntax: new section
Line 89:
::I wonder whether CSP will be enforced in the future (I hope *.toolforge.org is allowed as well). This may not be what the Ajax section of the User scripts guide is referring to, though: "AJAX scripts cannot reach a page on a different server (for example, google.ca or en.wikisource.org from en.wikipedia.org". I wonder whether it's safe to remove this from the docs. [[User:Diegodlh|Diegodlh]] ([[User talk:Diegodlh|talk]]) 18:43, 12 April 2022 (UTC)
:::{{ping|Diegodlh}} Unfortunately, toolforge may not be allowed according to {{phab|T304107#7787150}} and {{phab|T304151}}. For the time being, I think you can [[WP:BOLD|be bold]] and remove that sentence. [[User:NguoiDungKhongDinhDanh|<span style="font-family:Monotype Corsiva;background-image:linear-gradient(90deg,red,yellow,cyan);color:transparent;background-clip:text;-webkit-background-clip:text">'''NguoiDungKhongDinhDanh'''</span>]] 07:14, 13 April 2022 (UTC)
 
== Weird syntax ==
 
Is there a reason the code is written <code>document.editform.wpTextbox1.value = "{" + "{wikify}}\n\n" + document.editform.wpTextbox1.value;</code>? Why are the two left brackets separated? [[User:Dimpizzy|Dimpizzy]] ([[User talk:Dimpizzy|talk]]) 17:42, 20 January 2023 (UTC)