Show Full URL in HTTP Text - html

Image of How it Looks Likei am using Blab Chat Script , in chat, when i write some URL for example http://example.com/examplepage/example.html and enter. it only shows this "example.com/examplepage/..."
it only shows 25 Characters of URL, how can i remove this limit and shows full URL.
there is a funtion in blab.js that might effect this
function convjs(x){
y=/\%/g; x=x.replace(y,'%25');
y=/&/g; x=x.replace(y,'%26');
y=/\+/g; x=x.replace(y,'%2B');
return x;}
i want it like this
www.w3schools.com/html/html_formatting.asp

Related

Docs Inserted Image always before all text

Making a simple app script that puts images and Text into a Google Doc separated by 2 Columns, for whatever reason, no matter the way I try it the images are always above the text (Inline) in the Doc, even though they should be layered (Inline),
//Replace QR Code
let qrText = editLocalBody.findText("{{qrCode}}");
let setImagePlace = qrText.getElement().asText().replaceText("{{qrCode}}", "");
let qrCodeImage = setImagePlace.getParent().asParagraph().insertInlineImage(0, qrCodeBlob);
From what I've seen this should insert an image wherever the text was previously located, but when it runs this it's always in the wrong spot, somehow above the text it was suppost to be in!
//Edit - To Show The Progression Of What Is Suppose To Happen And What Actually Happens:
I'm making QR Code badges for a propriety system that runs integrated tightly with Google, so I'm using appscript to get an entry from a google form containing an amount of badges (With relevent data) and autofill a Google Doc Accordingly.
// Loop Start
I fill my template with a text line that has key words in it I can select and replace later, with a keyword it can use to insert another this (This Part Works)
I first edit (findText("{{qrCode}}");) the QR Code, replacing (.replaceText) the keyword for it to nothing ("")
I then get the parent of the piece of code I ran above, which is a block of text (I think all the text in the Doc, I think this is where the issue lies, it puts it above the text because it's just one 'paragraph' or not multiple 'bodies' of text, if I could separate this I think it would work!) As a paragraph, and insert An Inline Image at Child Index (0, of the image ,qrCodeBlob)
I've debugged this script quite a bit, so I know It's that final line that inserting images fails, it sees all the text as 'one'.
// I want this (In Descending Order, each it's own full line):
Image
Text
Image
Text
//What It Gives Me (In Descending Order, each it's own full line):
Image
Image
Text
Text
let qrCodeImage = setImagePlace.getParent().asParagraph().insertInlineImage(0, qrCodeBlob);

I want to set the image to match with Email

I create a table to show a picture of my friend and me but I can't get my friend picture in data_source and show my picture only.
First, I get picture form Datasource of google (Gmail profile picture) and I use filters like this
var empsDS = app.datasources.CurrentUser;
var email = widget.parent.datasource.item.Email;
empsDS.query.filters.PrimaryEmail._equals= email;
empsDS.load();
but program show my picture only
P.S. This is code to get a picture
#datasources.CurrentUser.item.ThumbnailPhotoUrl !== null ? #datasources.CurrentUser.item.ThumbnailPhotoUrl : window.DEFAULT_PROFILE_IMAGE_URL
Image Ex.
enter image description here
The reason it shows only your picture is because your datasource points to only the current user. you need to get the directory and find matches to the emails in order to get the each picture.

How to include template's value inside link or table in MediaWiki?

I search the documentation but I didn't know exactly how to call that.
I have a template Index2Name that return a name based on an index.
I'm trying to use that name in a link:
[[Articles/{{Index2Name|0001}}|{{Index2Name|0001}}]]
or
Image:Big-0001.png|link=Articles/{{Index2Name|0001}}|''{{Index2Name|0001}}''
In the last example, the name is printed but the link doesn't work. (In gallery element)
It doesn't work. The value from the template is printed but it is not converted to a link.
How can I make this works? And does this have a name? (For future reference)
EDIT: Index2Name is a simple switch returning a few words depending of the id. Since I'm using subpages I only want the name to appear (Example: MyArticle) but the link is Articles/MyArticle
Could you clarify exactly what you want to happen please. (Where you want to link and how you want it to look).
But for example if you use:
[[Image:Big-0001.png|''{{Index2Name|0001}}'']]
It will link to the page Image:Big-0001.png with the link text being the output of:
''{{Index2Name|0001}}''
Or if you use:
[[Image:Big-001.jpg|link=Articles/{{Index2Name|0001}}]]
The image, when clicked, will redirect you to the output of:
{{Index2Name|0001}}

How get a content of script tag if it length more than 10000?

I try read teaxt of script tag, but i don't recive it fully if it length more than 10000. For example:
$('script')[0].innerText
Result:
http://savepic.ru/13148939.png
commented on Administration task REL…" - it in end of result
Added: If i change content (f.e. $('script').text($('script').text()+'aaaa') then return full text

Prevent execution of script in a View when writing html tags

I have two html strings:
<script type="text/javascript">alert("s");</script>
1<br>2<br>3
User enters these and I store then in my database. Then, I load theme from the database again and write theme in a view to show theme to the user.
Here's how I do it:
// 1
#MvcHtmlString.Create("<script type="text/javascript">alert("s");</script>");
// 2
#MvcHtmlString.Create("1<br>2<br>3");
And, here is the results on my view:
1. A javascript dialog box pops up and shows the alert to the user.
2. 1
2
3
In sample 1, user can enter a script and bring up a javascript alert and the user can see the following string:
"<script type="text/javascript">alert("s");</script>"
That is OK, but in sample 2, the <br> tag does not work, and user will see this:
1<br>2<br>3
What can I do to have these outputs:
1: "<script type="text/javascript">alert("s");</script>"
2: 1
2
3
Note that I do not want to remove any part of user's data, because if a user is a developer and wants to show a script syntax, he should be allowed to.
There are many ways to do this, i like to use #Html.Raw
#Html.Raw("1<br>2<br>3")
for displaying html, and the output will be
1
2
3
#Html.Raw("<script>alert('s');</script>").ToHtmlString()
for displaying text , by adding ToHtmlString() , and the output will be
<script>alert('s');</script>