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

Non-free Javascripts on V2EX

  •  
  •   GNiux · 2015-11-18 12:18:11 +08:00 · 2379 次点击
    这是一个创建于 3295 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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   ·   实用小工具   ·   4988 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 09:58 · PVG 17:58 · LAX 01:58 · JFK 04:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.