"Sina SAE" remove annoying real-name authentication tips (discussion)

Source: Internet
Author: User
Tags comment tag html comment

HTML page to remove a small tail

Sina's SAE recently started the real -name certification (http://sae.sina.com.cn/ New registration or free, but it is so pit I will advertise it).

If you do not authenticate, the page on the server will prompt for authentication, such as:

Spit Groove:

Real-name authentication is a photo, but also need a variety of information, worry about advertising harassment and privacy of various balabala problems ...

And it was because I was too lazy to configure the server to use the SAE (annoying boot SQL services, all kinds of security risks of Apache ..., throw away all lost ~), at the same time to play the platform of the robot answer, in fact, I was a person in the interview, so intend to run out of traffic to do the plan ...

Degrees Niang to find the solution is a variety of irrelevant, feel irritable while I looked at the next, is the SAE automatically in the end of the unauthenticated page added a <div>

<Divstyle= "Z-index:2147483647;position:fixed;_position:absolute;top:0;left:0;right:0;padding:12px;background-color: RGBA (0,0,0,0.5); Filter:progid:DXImageTransform.Microsoft.gradient (startcolorstr= #7F000000, endcolorstr=# 7f000000); color: #fff; text-align:center;font-size:16px;font-family:simsun,serif;cursor:default; "><Pstyle= "margin:0;padding:0;">The provider for this page has not been completed<astyle= "Text-decoration:none;color: #37afe4;"Target= "_blank"href= "Http://sae.sina.com.cn/?m=faq&amp;a=view&amp;doc_id=22">Real name authentication</a>, there may be a risk to your visit</P><astyle= "Position:absolute;right:12px;top:50%;font-size:20px;color: #fff; border:none;margin:0;padding:0;; margin-top:-10px;line-height:20px;background:none;cursor:pointer;font-family: ' Helvetica Neue ', Helvetica, Arial, Sans-serif;outline:none; "onclick= "this.parentnode.style.display= ' None '">X</a></Div>

With the idea of injecting, the HTML comment tag "<!--" is added directly at the end of the page.

</ Body > </ HTML > <!-- in this case, the browser can automatically fill the other half.

That way, a static page can comment out the annoying little tail.

Later found that IE and chrome processing half of the way the label is not the same, ie still have some problems

I do not know whether HTML can be added at the end of similar to the end of the EOF such as the logo, if there is a better way to discuss in the message, ha, I add in

Data page to be resolved

But what bothers me is that the SAE has also attached a small tail at the end of the JSON data page returned by the server, causing the normal JSON packet to become unresolved.

While JSON does not seem to support annotations (including/* and//for JavaScript only), the following tries to add/* at the end

In addition echo "\n//"; Also tried, also not.

Here, please, brother, give me two strokes.

"Sina SAE" remove annoying real-name authentication tips (discussion)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.