彭梓峰
小狐狸
小狐狸
  • UID31008
  • 注册日期2009-11-08
  • 最后登录2010-01-31
  • 发帖数67
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
阅读:7738回复:20

谁能提供一个油猴或者stylish,隐藏标题栏的脚本,就是火狐边框。

楼主#
更多 发布于:2009-12-10 20:44
我知道有个扩展可以隐藏,但是现在我不想安扩展了,就想要个脚本,各位狐狸帮帮忙,stylish的脚本库我都找遍了,结果还是没有找到......
xelnaga
千年狐狸
千年狐狸
  • UID1911
  • 注册日期2005-01-08
  • 最后登录2022-04-20
  • 发帖数1725
  • 经验85枚
  • 威望0点
  • 贡献值8点
  • 好评度5点
  • 社区居民
1楼#
发布于:2009-12-10 20:44
我知道margin已经是设四条边,我意思既然不知道是什么问题,试试看总好

单独一个图片就是远程文件,没有html内容, 让firefox打开一个txt看看gm能不能有反应
harnack
狐狸大王
狐狸大王
  • UID25613
  • 注册日期2008-07-27
  • 最后登录2020-01-08
  • 发帖数325
  • 经验19枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
  • 社区居民
2楼#
发布于:2009-12-10 20:44
我也是菜鸟。按说把height增大16px(宽度也等比例放缩)就行了,但用css貌似没法这么精准控制。gm不难做到,但我试过后发现gm好像无法作用于这种单独有一个图片的页面,奇怪了。
听老人说,今生做千件好事,来世方能讨生为猫。
70599
火狐狸
火狐狸
  • UID10222
  • 注册日期2005-12-01
  • 最后登录2021-01-27
  • 发帖数114
  • 经验50枚
  • 威望0点
  • 贡献值28点
  • 好评度1点
  • 社区居民
  • 忠实会员
3楼#
发布于:2009-12-10 20:44
xelnaga:单独定义margin-right  margin-bottom  试试看有没有用回到原帖


没有用的,这段css已经是针对4条边的了。
我也实际操作过,确实无效。

[quote="harnack"]本来是上下左右各有8px的空白,现在向左上方移动8px,又没改变图像大小,右下方当然会有16px的空白了。我觉得必须得改变图像大小才行,光用css调整margin总会有个地方留有空白。[/quote]

在下才疏学浅,可否提供个样板?
Nightly@OS X
harnack
狐狸大王
狐狸大王
  • UID25613
  • 注册日期2008-07-27
  • 最后登录2020-01-08
  • 发帖数325
  • 经验19枚
  • 威望0点
  • 贡献值0点
  • 好评度1点
  • 社区居民
4楼#
发布于:2009-12-10 20:44
本来是上下左右各有8px的空白,现在向左上方移动8px,又没改变图像大小,右下方当然会有16px的空白了。我觉得必须得改变图像大小才行,光用css调整margin总会有个地方留有空白。
听老人说,今生做千件好事,来世方能讨生为猫。
xelnaga
千年狐狸
千年狐狸
  • UID1911
  • 注册日期2005-01-08
  • 最后登录2022-04-20
  • 发帖数1725
  • 经验85枚
  • 威望0点
  • 贡献值8点
  • 好评度5点
  • 社区居民
5楼#
发布于:2009-12-10 20:44
单独定义margin-right  margin-bottom  试试看有没有用
70599
火狐狸
火狐狸
  • UID10222
  • 注册日期2005-12-01
  • 最后登录2021-01-27
  • 发帖数114
  • 经验50枚
  • 威望0点
  • 贡献值28点
  • 好评度1点
  • 社区居民
  • 忠实会员
6楼#
发布于:2009-12-10 20:44
火狐单独显示图片的时候,图片周围总有8像素空白边框(即图片左上角第一像素的坐标位于火狐显示范围的(9,9))。
下面的userContent.css脚本可以去掉图片左边框和上边框的空白,但是不能去掉右边框和下边框的空白。
请问还有别的办法吗?

HTML > BODY > IMG:only-child {
display: block !important;
margin: -8px !important;
}
Nightly@OS X
lx97
小狐狸
小狐狸
  • UID31922
  • 注册日期2010-02-02
  • 最后登录2010-09-17
  • 发帖数17
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
7楼#
发布于:2009-12-10 20:44
留个名。已经成功隐藏了。
彭梓峰
小狐狸
小狐狸
  • UID31008
  • 注册日期2009-11-08
  • 最后登录2010-01-31
  • 发帖数67
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
8楼#
发布于:2009-12-10 20:44
对不起各位,这我已经用uc脚本解决了,谢谢
月神
火狐狸
火狐狸
  • UID30733
  • 注册日期2009-10-18
  • 最后登录2014-05-05
  • 发帖数216
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
9楼#
发布于:2009-12-10 20:44
autohide扩展
lovingbeast
小狐狸
小狐狸
  • UID31298
  • 注册日期2009-12-05
  • 最后登录2014-08-31
  • 发帖数9
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
  • 社区居民
10楼#
发布于:2009-12-10 20:44
hide caption titlebar plus   这个扩展可以实现标题栏的隐藏功能
msky
千年狐狸
千年狐狸
  • UID14649
  • 注册日期2006-09-21
  • 最后登录2023-04-03
  • 发帖数2959
  • 经验166枚
  • 威望0点
  • 贡献值12点
  • 好评度9点
  • 社区居民
11楼#
发布于:2009-12-10 20:44
是的,在最后一行加上就行,然后就在chame的目录里,添加新的脚本就可以了。

.uc.js也行,只要最后一个后缀是.js就可以了,隔壁有个脚本版,但是最近几天老上不去,可以去那里看看
http://board.mozest.com/forum-50-1
彭梓峰
小狐狸
小狐狸
  • UID31008
  • 注册日期2009-11-08
  • 最后登录2010-01-31
  • 发帖数67
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
12楼#
发布于:2009-12-10 20:44
just4fun:装了ucjs的话连stylish都可以卸了,可以用ucjs_Stylish_modoki 代替回到原帖

这东西好不好,好歹我要知道怎么安装吧,是不是像我这样的格式,直接就在userChrome最后一行加上userChrome.import("*", "UChrm"); 就行,然后就在chame的目录里,添加新的脚本就可以了?
添加的格式是不是直接建个文本文档,把代码直接复制就去?
后戳是什么?我看见有的人说是 . uc.js
我都晕了....又有的人说这个扩展有时不生效....
能不能你们再说得白一点,好让我这个鸟飞起来
just4fun
千年狐狸
千年狐狸
  • UID30408
  • 注册日期2009-09-17
  • 最后登录2016-04-28
  • 发帖数1497
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度2点
13楼#
发布于:2009-12-10 20:44
装了ucjs的话连stylish都可以卸了,可以用ucjs_Stylish_modoki 代替
彭梓峰
小狐狸
小狐狸
  • UID31008
  • 注册日期2009-11-08
  • 最后登录2010-01-31
  • 发帖数67
  • 经验10枚
  • 威望0点
  • 贡献值0点
  • 好评度0点
14楼#
发布于:2009-12-10 20:44
我这个人笨的很还是搞不懂
只有这样了
加好了的文件如下:
/*
 * userChromeJS
 *
 * This file can be used to customize the functioning of Mozilla's user
 * interface.  Usage and syntax follow below; for useful code snippets see
 * http://mozilla.zeniko.ch/userchrome.js.html.
 *
 * Examples:
 * setTimeout(function() { document.title = "A new title for every window" }, 2000);
 *
 * if (location == "chrome://browser/content/browser.xul") {
 *   alert("Script loaded in main browser only");
 * }
 *
 * // DOMi window
 * if (location == "chrome://inspector/content/inspector.xul") {
 *    // Move Urlbar box to main toolbar
 *    var tb = document.getElementById('bxURLBar');
 *    var el = document.getElementById('mbrInspectorMain');
 *    if (tb && el) el.appendChild(tb, el.firstChild);
 * }
 *
 * NOTE: userChromeJS includes an 'import' function to facilitate file management.
 * An absolute path or relative path with Directory name property token can be
 * used, as follows:
 *
 * // Single file (javascript .js or overlay .xul file)
 * userChrome.import("Full file path");
 * userChrome.import("Relative file path", "Token");
 * // All .js and .xul files in a folder will be loaded.
 * userChrome.import("Full file folder path");
 * userChrome.import("Relative file folder path/name", "Token");
 * userChrome.import("*", "Token");
 * // Console logger
 * userChrome.log("My message", "Optional calling script name arg");
 *
 * NOTE: absolute windows files and folders must be have backslash escaped:
 * "C:\\Program Files\\Mozilla\\scripts\\myscript.js"
 *
 * Examples:
 * // Import script in [ProfileDir]/chrome/scripts/myscript.js
 * userChrome.import("scripts/myscript.js", "UChrm");
 * // Import script in [Profiles]/scripts/myscript.js (share same script in
 * // multiple profiles
 * userChrome.import("scripts/myscript.js", "DefProfRt");
 * // All .js or .xul in profile chrome directory
 * userChrome.import("*", "UChrm");
 * // Import overlay
 * userChrome.import("C:\\Program Files\\Mozilla\\scripts\\myOverlay.xul");
 * // Import everything in Desktop folder /scripts
 * userChrome.import("scripts", "Desk");
 * // Perhaps the only thing you need in this file..
 * if (location == "chrome://browser/content/browser.xul") {
 *  userChrome.import("scripts", "DefProfRt");
 * }
 *
 * NOTE: for a full listing of directory tokens see the two links found here:
 * https://developer.mozilla.org/en/Code_s ... cial_files
 * // What's the path for a token?  This will print it in the console..
 * userChrome.log(userChrome.getAbsoluteFile("Desk").path, "getAbsoluteFile:'Desk'");
 *
 * NOTE: userChromeJS includes a log function, invoked as follows:
 * userChrome.log("string1", ["string2"])
 * Example:
 * userChrome.log("hello world!", "myscript.js");
 * Results in a console message:
 * 2009-05-22 18:07:40 userChromeJS.js::myscript.js: hello world!
 *
 * NOTE: the date format for the userChrome.log console logger may be user defined:
 * Example:
 * userChrome.dateFormat = "%Y-%m-%d %H:%M:%S";
 *
 * NOTE: the following shortcuts are predefined:
 * Cc = Components.classes;
 * Ci = Components.interfaces;
 * Cr = Components.results;
 * Cu = Components.utils;
 *
 */
userChrome.import("*", "UChrm");



晕....图片跑哪里去了
上一页
游客

返回顶部