简体   繁体   English

如何使此UserScript在IE10上运行?

[英]How to make this UserScript run on IE10?

I'm %5 in Javascript commands , so first thing is to not blame me for anything you watch. 我在Javascript命令中的使用率是%5,所以第一件事就是不要因为看到的内容而怪我。

anyway, i used IE 10 for javascripting files i have a command/file.js for ( Auto Check ToS Box ) and purchasing automaticcaly. 无论如何,我使用IE 10编写JavaScript文件,我有一个command / file.js用于(自动检查ToS Box)并购买autocaly。

// ==UserScript==
// @name AutoCheckSteamMarketToSBox
// @namespace *://www.steamcommunity.com/market/listings/*
// @include *://steamcommunity.com/market/listings/*
// ==/UserScript==


function buyitem() {
    document.getElementById('market_buynow_dialog_accept_ssa').checked = true;
}

and this is the purchasing button: 这是购买按钮:

function buyItemconfirm() {
    document.getElementById('market_buynow_dialog_purchase').click();
}

i dont know how to open and close the commands, also i dont know if that script need (var) or (if) or or 我不知道如何打开和关闭命令,我也不知道该脚本是否需要(var)或(if)或或

anyway, what i want exactly? 无论如何,我到底要什么?

i want if the TOS box is checked, he will buy the item automaticcaly by: 我想如果选中“服务条款”框,他将通过以下方式自动购买该商品

document.getElementById('market_buynow_dialog_purchase').click();

without pressing purchase button manually. 无需手动按下购买按钮。

i know it's too much easy commands for javascript coders, so please help me for this script without any error if you dont mind. 我知道这对于javascript编码器来说太简单了,所以如果您不介意的话,请为这个脚本提供帮助,没有任何错误。

Thanks. 谢谢。

I know this is an old thread, but I want to highlight that you can run Userscripts in IE with TrixieWPF45 (a clone of Trixie). 我知道这是一个旧线程,但是我想强调一下,您可以使用TrixieWPF45(Trixie的一个克隆)在IE中运行Userscripts。 It works with IE11 on Windows 8: 它可在Windows 8上与IE11一起使用:

http://sourceforge.net/projects/trixiewpf45/ http://sourceforge.net/projects/trixiewpf45/

It is not the simplest to use, ei. 它不是最简单的使用。 when you develop userscripts you have to reload them via the Trixie settings panel to refresh the scripts. 开发用户脚本时,必须通过Trixie设置面板重新加载它们以刷新脚本。

Additionally you can use IE7Pro (disregard the name, it does work with later versions of IE) http://download.cnet.com/IE7Pro/3000-12512_4-10649334.html 另外,您可以使用IE7Pro(忽略名称,它确实适用于更高版本的IE) http://download.cnet.com/IE7Pro/3000-12512_4-10649334.html

But it is a much larger plugin and more bulky 但这是一个更大的插件,而且体积更大

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM