Non-free Javascripts on V2EX - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
GNiux
V2EX    反馈

Non-free Javascripts on V2EX

  •  
  •   GNiux 2015-11-18 12:18:11 +08:00 2645 次点击
    这是一个创建于 3690 天前的主题,其中的信息可能已经有所发展或是发生改变。
    Free Software 狂热者来了,哇卡卡:)

    from LibreJS:


    List of accepted Javascript in https://v2ex.com/mission/daily

    This script has been tagged as free software by LibreJS authors.
    https://cdn.v2ex.com/static/js/jquery.js

    List of blocked Javascript in https://v2ex.com/mission/daily

    Whitelist

    NONTRIVIAL: an open method similar to xhr.open is used

    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-11940834-2', 'v2ex.com');
    ga('send', 'pageview');



    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onsubmit","value":"return dispatch()"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"if (confirm('确定要从 V2EX 登出?')) { location.href= '/signout?Once=46830'; }"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"recordOutboundLink(this, 'Outbound Links', '100offer.com');"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"location.href = '/mission/daily/redeem?Once=46830';"}]

    Whitelisterror parsing: ReferenceError: type is not defined
    https://cdn.v2ex.com/static/js/jquery-ui.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://cdn.v2ex.com/static/js/jquery.autosize.js?v=1.18.9
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/v2ex.js?v=86867cfb3f3a9d584205ca2ee1a940ab
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/select2/select2.min.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/selectboxit/selectboxit.min.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/jquery.textcomplete.min.js?v=43bfb325d9b6b784e680aa9eaef91925


    List of blocked Javascript in https://v2ex.com/go/feedback

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts

    $(function(){
    protectTraffic();
    $('#topic_content').autosize().blur();
    });


    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts

    blocked = [];
    ignored_topics = [];
    $("#TopicsNode").children('.cell').each( function(index) {
    for (i in blocked) {
    if ($(this).hasClass('from_' + blocked[i])) {
    $(this).css('display', 'none');
    }
    }
    for (i in ignored_topics) {
    if ($(this).hasClass('t_' + ignored_topics[i])) {
    $(this).css('display', 'none');
    }
    }
    });


    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts

    $("#topic_content").keydown(function(e) {
    if ((e.ctrlKey || e.metaKey) && e.which === 13) {
    e.preventDefault();
    $("#topic_content").parent().submit();
    }
    });
    $("#topic_title").keydown(function(e) {
    if ((e.ctrlKey || e.metaKey) && e.which === 13) {
    e.preventDefault();
    $("#topic_title").parent().submit();
    }
    });


    Whitelist

    NONTRIVIAL: an open method similar to xhr.open is used

    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
    })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

    ga('create', 'UA-11940834-2', 'v2ex.com');
    ga('send', 'pageview');



    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onsubmit","value":"return dispatch()"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"if (confirm('确定要从 V2EX 登出?')) { location.href= '/signout?Once=20305'; }"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"recordOutboundLink(this, 'Outbound Links', '100offer.com');"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"location.href = '/new/feedback';"}]

    Whitelist

    This script is detected as inline, nonfree, defining functions or methods, and the rest of the page as loading external scripts
    [{"attribute":" onclick","value":"location.href = '/go/feedback?p=2';"}]

    Whitelisterror parsing: ReferenceError: type is not defined
    https://cdn.v2ex.com/static/js/jquery-ui.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://cdn.v2ex.com/static/js/jquery.autosize.js?v=1.18.9
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/v2ex.js?v=86867cfb3f3a9d584205ca2ee1a940ab
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/select2/select2.min.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/selectboxit/selectboxit.min.js
    Whitelisterror parsing: ReferenceError: type is not defined
    https://v2ex.com/static/js/jquery.textcomplete.min.js?v=43bfb325d9b6b784e680aa9eaef91925
    4 条回复    2015-11-19 16:29:15 +08:00
    oott123
        1
    oott123  
       2015-11-18 13:40:37 +08:00 via Android
    能告诉我这说明了什么吗…
    看上去像是扫描器生成的结果直接复制粘贴了,这样真的好吗?
    GNiux
        2
    GNiux  
    OP
       2015-11-18 22:06:55 +08:00
    @oott123
    谢谢你的提问。对,我只是从一个叫“ LibreJS"的插件中截获贵网站上每个页面传给我的 Javascripts ,有的(大部分) js 是不让客户端用者看到 js 具体是什么内容(源码)。

    不让使用者知情那些 js 到底做了什么,这样,真的好吗?
    oott123
        3
    oott123  
       2015-11-18 22:27:32 +08:00 via Android
    @GNiux 我不明白什么叫「不让客户端用者看到 js 具体是什么内容(源码)。 」
    如果你指压缩、混淆,那这是节约网络流量的一种方式。

    另外,如果你在意每个 js 都做了什么,你可以启用 NoScript 。我认为绝大多数使用者并不需要理解这些,我也不认为网站的作者有义务告知用户。
    GNiux
        4
    GNiux  
    OP
       2015-11-19 16:29:15 +08:00
    1. 我明白“是节约网络流量的一种方式”,但这是在回答我的问题?

    2. 为什么要因噎废食?

    3. 对不起,打扰你了。可是……“认为绝大多数使用者并不需要理解这些”的判断理据是?
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     5587 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 29ms UTC 01:58 PVG 09:58 LAX 17:58 JFK 20:58
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86