None of them will work. The perfect solution is to execute scripts on IE + ff.

Source: Internet
Author: User

None of them will work. The perfect solution is to execute scripts on IE + ff.

Cause:

Recently, irrigation is often performed in water sources. The most common task in water sources is to receive points.

Occasionally, I am also able to share points (not how to scatter, not how to answer ).

When points were received, they saw that the building was a little uncomfortable (they scored multiple stars ). It is no wonder that there are so many floor pasters: The landlords generally give an average score (the "average score" function provided by csdn is based on the floor, and the higher the chance of building pasters to score ).

Therefore, my splitting is usually done by hand. However, it is a waste of time to input a large number of buildings. There is a need for "average score, by person", including me. See: cpio is hard to understand. Why is there always someone trying to make a strong response when splitting? Can the average score be set to head-based?

In particular, there is at least 126 floors of a post with "MD5 ()" scattered on that day. The calculation rules are quite complex. It is too time-consuming to manually close the post. Only program AIDS can be written, the implementation program must analyze the HTML elements of the post. After the MD5 () post is completed, the code "average score, by person" is basically available! However, it is not suitable to simply publish a function. Other functions are required.

In a few days, I happened to see the post "post completion tool-reply to the statistical machine" posted by Tom ". You can count the number of times each person replies to a post. Functions are completed in JavaScript. However, I have never liked to install any plug-ins in IE (I am afraid of rogue software), so I only learned to use scripts to complete the average score, by people.

 

Process:

The tools I released must be green: decompress and use, do not write the registry, do not access the network, and do not write files.

 

The Internet Explorer Script auxiliary tool was born. After the release, I added a few small ads with an ideal effect: currently, 113 people are downloading (4.93 points, out of 10 ).

For promotion, you have to write some wonderful scripts, such as counting the number of registrants for the egg and changing the response to a gradient. Continue writing 2.0 now. However, an annoying problem arises: how can I use Firefox? Currently, I only know how to execute ie scripts across processes. (Maybe that's the instant inspiration) the most primitive way to put the script in the address bar is to be compatible with IE and FF! Test whether a cross-process access to the FF address bar is allowed? It is not easy to be depressed. It is not a standard edit control. Isn't FF tagged? Can I save the script as a tag ?.... So bright enough to see it!

 

Solution:

First, you must have a script. (It's hard to be a man without rice)

You change the script to a single line. (Replace line breaks with spaces. If you are not a programmer, find the ready-made character)

Assume that the script is "javascript: Alert (" Hello World ");"

[Firefox]

Firefox menu-> bookmarks-> Manage bookmarks


Open the bookmarks manager and add new bookmarks.

Enter the line of Javascript in "Address" and click it in the bookmarks.

The dialog box is displayed! Don't lie to you! Okay, so far FF has done it!

[Internet Explorer]

No shortcut is found in IE, so you can find a link shortcut to modify it.

Face-saving. Oh, it turns out that "yes" and "no" are selected. Select "yes.

It is as simple as ff.

Go to the favorites folder and check if there is another hello! Prompt or "script"

A little bit. IE. The next step is the free time ^ o ^

 

Of course, my script is not that simple.

[Internetshortcut]

Url = javascript: function geteditor () {var replyframe = parent.doc ument. getelementbyid ("replyframe"); If (replyframe) {return replyframe.content#doc ument. getelementbyid ("tb_replybody ___ Editor");} else {return document. getelementbyid ("ctl00_ctl00_cph_content_cph_basecontent_tb_topicbody ___ Editor") ;}} function seteditortext (value) {var editor = geteditor (); If (editor) {editor. value = Val UE; Editor. focus () ;}} function geteditortext () {var editor = geteditor (); If (editor) return editor. value;} function colorformat (color) {var S = color. tostring (16); var L = S. length; Return "#" + "000000 ". substring (l) + S;} function getrvalue (color) {return color & 0xff;} function getgvalue (color) {return (color> 8) & 0xff ;} function getbvalue (color) {return (color> 16) & 0xff;} Fu Nction RGB (R, G, B) {return r | (G <8) | (B <16);} var startcolor = 0x1000000 * Math. random (); var endcolor = 0x1000000 * Math. random (); var STR = geteditortext (); If (Str. length> 0 & Str. indexof ("[/color]") <0) {var output = ""; var lastformat = ""; var currformat = ""; var redspace = getrvalue (endcolor) -getrvalue (startcolor); var greenspace = getgvalue (endcolor)-getgvalue (startcolor ); Var bluespace = getbvalue (endcolor)-getbvalue (startcolor); For (VAR I = 0; I <Str. length; I ++) {If (// S /. test (Str. charat (I) {output = output + Str. charat (I); continue;} currformat = colorformat (RGB (getrvalue (startcolor) + (I/Str. length * redspace), getgvalue (startcolor) + (I/Str. length * greenspace), getbvalue (startcolor) + (I/Str. length * bluespace); If (lastformat! = Currformat) {If (lastformat. length> 0) Output = output + "[/color]"; Output = output + "[color =" + currformat + "]";} lastformat = currformat; output = output + Str. charat (I);} If (lastformat. length> 0) Output = output + "[/color]"; seteditortext (output);} else {alert ("colored! ");}

 

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.