如何修改.html文件以每次向输入字段提供硬编码输入?

如何修改.html文件以每次向输入字段提供硬编码输入?,html,arguments,webpage,powerschool,Html,Arguments,Webpage,Powerschool,我想访问我的Powerschool(Powerschool.avon.k12.ct.us),我发现每次都需要输入密码和用户名相当乏味。为了尝试修复此问题,我在Chrome中下载了该页面的源代码,如下所示: <!DOCTYPE html> <!-- saved from url=(0052)http://powerschool.avon.k12.ct.us/guardian/home.html --> <html><head><meta htt

我想访问我的Powerschool(Powerschool.avon.k12.ct.us),我发现每次都需要输入密码和用户名相当乏味。为了尝试修复此问题,我在Chrome中下载了该页面的源代码,如下所示:

<!DOCTYPE html>
<!-- saved from url=(0052)http://powerschool.avon.k12.ct.us/guardian/home.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Parent Sign In</title>
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta name="robots" content="noindex">
<link href="./Powerschool_files/screen.css" rel="stylesheet" type="text/css" media="screen">

<meta name="viewport" content="width=device-width">
<script src="./Powerschool_files/jquery-1.4.2.min.js"></script><style type="text/css"></style> 
<script language="JavaScript" src="./Powerschool_files/md5.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript"><!--
var pskey = "4EDE156E2FAD0F1A427D2AD066530F496ADC3EEA78CE43E70F28053576FD4EA1";
//-->
</script>
<script language="JavaScript" type="text/javascript">
function deleteCookie(cookieName){
    var cookieDate = new Date();
    cookieDate.setTime(cookieDate.getTime()-1);
    document.cookie = cookieName + "=; expires='" + cookieDate.toGMTString()+"'; path=/";
}
deleteCookie("InformAuthToken");

function getURLParameter(name) {
    return unescape(
        (RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1]
    );
}

var $j = jQuery.noConflict();
$j(document).ready(function() {
    // Hide or show the translator login input field
    // if the URL parameter "translator" is present
    var translator = getURLParameter("translator");
    if (translator == "null") {
        $j('#translatorInput').hide();
    } else {
        if (translator == "true") {
            $j('#translatorInput').show();
        } else {
            $j('#translatorInput').hide();
        }
    }
    $j('a.popWin').click(function(){
        var winURL = $j(this).attr('href');
        window.open(winURL);
        return false;
    });
});
</script>
</head>
<body class="pslogin" id="palogin">
<div id="container">
     <div id="branding-powerschool"><img src="./Powerschool_files/ps7-logo-lrg.png" alt="PowerSchool" width="280" height="41"></div>
  <div id="content" class="group">
<form action="./Powerschool_files/Powerschool.htm" method="post" name="LoginForm" target="_top" id="LoginForm" onsubmit="doPCASLogin(this);">
  <input type="hidden" name="pstoken" value="2465670387a1nxrEimrKqPMN0c7QbxxKLNZe16PRC">
  <input type="hidden" name="contextData" value="4EDE156E2FAD0F1A427D2AD066530F496ADC3EEA78CE43E70F28053576FD4EA1">
  <input type="hidden" name="dbpw" value="">
  <input type="hidden" name="translator_username" value="">
  <input type="hidden" name="translator_password" value="">
  <input type="hidden" name="translator_ldappassword" value="">

<input type="hidden" name="returnUrl" value="">
<input type="hidden" name="serviceName" value="PS Parent Portal">
<input type="hidden" name="serviceTicket" value="">
<input type="hidden" name="pcasServerUrl" value="/">
<input type="hidden" name="credentialType" value="User Id and Password Credential">







              <h2>Parent Sign In</h2>
      <!--box content-->

    <div id="noscript" class="feedback-alert" style="display: none;"> To sign in to PowerSchool, you must use a browser that supports and has JavaScript enabled. </div>
    <fieldset id="login-inputs" class="group">

        <div>
              <label>Username</label>
              <input type="text" id="fieldAccount" name="account" value="" size="39">
        </div>
        <div>
              <label>Password</label>
              <input type="password" name="pw" value="" size="39"><div id="login-help"><a href="http://powerschool.avon.k12.ct.us/public/logonhelp.html">Having trouble signing in?</a></div>
        </div>
        <div id="translatorInput" style="display: none;">
              <label>Translator Sign In</label>
              <input type="password" name="translatorpw" value="" size="39">
        </div>
        <div class="button-row">
        <button type="submit" id="btn-enter" title="Sign In To PowerSchool Parent Access" value="Enter" border="0">Sign In</button>
        </div>
    </fieldset> 

      <!-- box content-->


</form>


 </div>
 <div id="footer" class="group">
    <p>Copyright© 2005 - 2013 Pearson Education, Inc., or its affiliate(s). All rights reserved.</p>
    <p id="pearsoncorplink"><a href="http://www.facebook.com/powerschool" class="popWin fb" title="Join us on Facebook">Join us on Facebook</a></p>
</div>

</div>
<div id="branding-pearson">
    <div id="logo-pearson"></div>
    <div id="tagline-pearson"></div>
</div>
<script type="text/javascript">
    /**
     * Set the page's locale via a request_locale URL parameter. If there is already a URL parameter by
     * this name, then substitute it with the passed-in locale. NOTE: This function will actually cause the page
     * to be re-submitted with the new locale, so it really should not be used with pages submitted via POST
     * requests (if there are any, which I hope there are not).
     * @param locale the locale to set (e.g. en_US)
     */
    function setPageLocale (locale) {
      var c=String (window.location);
      var rlpos = c.indexOf("request_locale=");
      var afterPart = "";
      if (rlpos > 0) {
        var afterBegin = c.indexOf("&", rlpos);
        if (afterBegin > 0) {
          afterPart = c.substring(afterBegin);
        }
        c = c.substring(0, rlpos-1);
      }
      var s=(c.indexOf('?') > 0 ? '&' : '?');
      var np = c + s + 'request_locale=' + locale + afterPart;
      window.location = np;
    }

    function jsCheck() {
            document.getElementById("login-inputs").className = 'group';

    }
 jsCheck();
</script>

<script>
$j('#noscript').hide();
function jsEnabled() {
    if(typeof $j != 'function'){
        alert('Developer: This page is missing key components required for functionality!\n\nPossible causes include:\n - Commonscripts might be missing.\n - Page customization might enabled, and incomplete.');
        //document.write('<script...');
        } else {
        $j('#login-inputs').removeClass('hide');
        $j("#fieldAccount").focus();
    }
}
$j(document).ready(function(){
    jsEnabled();
});

</script>


</body></html>
错误6(net::ERR\u FILE\u NOT\u FOUND):找不到文件或目录。


你们知道如何做到这一点吗?

你们可以使用Chrome自动记住密码,但你们所拥有的应该是有效的。您只需要更改URL的任何路径,它就可以完美地工作。您肯定需要更改的一个是表单
操作

- ./Powerschool_files/Powerschool.htm
+ https://example.com/Powerschool_files/Powerschool.htm

这应该允许您直接提交到该站点,除非他们在我看不到的表单中有CSRF令牌。

与其复制整个页面,不如制作一个填充表单的bookmarklet。只需编辑普通书签并将链接更改为:

javascript:(function() { document.forms[0].elements[0].value="hi" })()

这将设置第一个表单中第一个字段的值。(可能需要一些实验才能看到哪个表单编号和哪个字段编号。)

Example.com?这应该是站点的地址吗?当我将其修改为正确的值时,chrome会在地址栏中将其打开,并显示文件的路径。当我单击“提交”时,页面将刷新并转到实际的网页,其中包含空白字段。知道发生了什么吗?@pipsqueaker117不知道;我认为你的行为仍然是错误的
javascript:(function() { document.forms[0].elements[0].value="hi" })()